我有一个依赖于httparty的本地gem。
当地一切都很好。
如果我将应用程序推送到heroku,我不会收到任何错误
如果我在Heroku中运行我的宝石,我会想念httparty宝石。
下面你可以在Heroku上本地和远程处理我的宝石的状态 当地:
:~/workspace/daemon (master)$ gem list | grep httparty
httparty (0.11.0)
:~/workspace/daemon (master)$ cat Gemfile.lock | grep httparty
httparty (0.11.0)
httparty
:~/workspace/daemon (master)$ cat esendex-daemon.gemspec | grep httparty
spec.add_development_dependency "httparty"
On Heroku:
:~/workspace/daemon (master)$ heroku run gem list | grep httparty
:~/workspace/daemon (master)$ heroku run cat Gemfile.lock | grep httparty
httparty (0.11.0)
httparty
可能是什么问题? 谢谢
答案 0 :(得分:2)
Heroku不会安装开发依赖项
将spec.add_development_dependency
更改为spec.add_dependency