为什么heroku不能像我在本地那样列出相同的宝石? [英] why does heroku not list the same gems as i have locally?

查看:167
本文介绍了为什么heroku不能像我在本地那样列出相同的宝石?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述



我的应用在本地工作,但在Heroku上失败。失败的原因表明这是因为它缺少我在本地安装的插件。



这是一个我似乎无法找到的基本问题。 我如何确保或更新heroku上的宝石列表以匹配我的本地设置?



我在gemfile中有宝石,并且推到混帐。当我进入heroku控制台并输入 gem list 时,它不在那里。



谢谢

编辑。解决了。 24小时内无法回答我自己的问题。
我有:group =>开发列在宝石旁边。我甚至不记得那里。

确保你运行 bundle install在推送到heroku之前。这会生成您的 Gemfile.lock 文件,以确保heroku和本地上的gem相同。


I'm still pretty new to heroku and git hub and rails.

My app works locally, but fails on Heroku. The lines of failure indicate it's because it's missing the plugin I installed locally.

This is a basic question that I can't seem to find. How do I ensure that or update the list of gems on heroku to match my local setup?

I have the gem in my gemfile, and have pushed to git. When I go in heroku console and type gem list it's not there.

Thanks

EDIT. Solved. Can't answer my own question for 24 hours. I had :group => development listed next to the gem. I don't even remember putting that there. Removed it, obviously, and problem solved.

解决方案

Make sure you run bundle install before pushing to heroku. This generates your Gemfile.lock file that ensures the gems are the same on heroku and locally.

这篇关于为什么heroku不能像我在本地那样列出相同的宝石?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆