如何在heroku running Rails 2.3.5上安装bitly
我将其添加到environment.rb
config.gem 'bitly'
并且我将其添加到.gems
bitly
但是当我执行“git push heroku”时我收到此错误:
-----> Installing gem bitly from http://gemcutter.org, http://rubygems.org
ERROR: Error installing bitly:
multi_json requires RubyGems version >= 1.3.6
! Heroku push rejected, failed to install gem
感谢任何帮助。
I added this to environment.rb
config.gem 'bitly'
And I added this to .gems
bitly
But when I do "git push heroku" I get this error:
-----> Installing gem bitly from http://gemcutter.org, http://rubygems.org
ERROR: Error installing bitly:
multi_json requires RubyGems version >= 1.3.6
! Heroku push rejected, failed to install gem
Any help is appreciated.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
.gems
在 Heroku 上已弃用。根据文档,您应该改用 Bundler。.gems
is deprecated on Heroku. As per the docs, you should be using Bundler instead.