heroku 机架依赖
我正在使用 Gemfile 中 git 存储库中的 rack 1.2.3
gem 'rack', :git => 'git://github.com/madhums/rack.git', :branch => 'aesthete'
一切都在本地运行良好。当我部署到heroku时,出现此错误您已经激活了rack 1.1.0,但是您的Gemfile需要 机架 1.2.3。考虑使用捆绑执行。 (Gem::LoadError)
Starting process with command `thin -p 36127 -e development -R /home/heroku_rack/heroku.ru start
`/usr/ruby1.9.2/lib/ruby/gems/1.9.1/gems/bundler-1.0.7/lib/bundler/runtime.rb:27:in
`block in setup':
You have already activated rack 1.1.0, but your Gemfile requires rack 1.2.3
Consider using bundle exec. (Gem::LoadError)
我相信heroku正在使用的其他一些gem依赖于rack 1.1.0?
我该如何解决这个问题?
I am using rack 1.2.3
from my git repo in the Gemfile
gem 'rack', :git => 'git://github.com/madhums/rack.git', :branch => 'aesthete'
Everything works fine locally. When I deploy to heroku, I get this error You have already activated rack 1.1.0, but your Gemfile requires
rack 1.2.3. Consider using bundle exec. (Gem::LoadError)
Starting process with command `thin -p 36127 -e development -R /home/heroku_rack/heroku.ru start
`/usr/ruby1.9.2/lib/ruby/gems/1.9.1/gems/bundler-1.0.7/lib/bundler/runtime.rb:27:in
`block in setup':
You have already activated rack 1.1.0, but your Gemfile requires rack 1.2.3
Consider using bundle exec. (Gem::LoadError)
I believe some other gem which heroku is using is dependent on rack 1.1.0?
How can I resolve this issue?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我认为您需要在 Gemfile 中添加 Thin gem。也许可以工作
I think you need add thin gem in your Gemfile. Maybe can works