Heroku Rails 3应用程序无法启动
我在 heroku 上成功部署 Rails 3 应用程序后,它无法启动。错误日志开头为:
/usr/ruby1.8.7/lib/ruby/gems/1.8/gems/bundler-0.9.26/lib/bundler/definition.rb:25:in from_lock': You Changed your Gemfile锁定后。请使用
bundle lock` (Bundler::GemfileChanged)重新锁定
我在开发机器上使用bundler 1.0.7,但看起来heroku的版本太旧了。有人有解决方法吗?
After I've successfully deployed a Rails 3 app on heroku, it fails to start. The error log starts with:
/usr/ruby1.8.7/lib/ruby/gems/1.8/gems/bundler-0.9.26/lib/bundler/definition.rb:25:in from_lock': You changed your Gemfile after locking. Please relock using
bundle lock` (Bundler::GemfileChanged)
I'm using bundler 1.0.7 on the development machine, but it looks like heroku's version is too old. Does anyone have a workaround?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
这样做:
它应该可以正常工作。
Do this:
It should work fine.
看来问题实际上是由 devise_openid_authenticatable gem 引起的,我在供应商/gems 目录中解压后使用它。不过,我不确定为什么 - 可能是因为这个 gem 在其根目录中也包含了一个 Gemfile。
It appears the problem was actually caused by the devise_openid_authenticatable gem, which I was using it unpacked in the vendor/gems directory. I'm not sure why, though - probably because this gem packs a Gemfile in its root directory, too.