0
我们使用capistrano进行导轨部署。在生产服务器上运行bundle install
时,这是一个奇怪的错误。捆绑软件安装无法执行,导致导轨生产服务器出错
You are trying to install in deployment mode after changing
your Gemfile. Run `bundle install` elsewhere and add the
updated Gemfile.lock to version control.
If this is a development machine, remove the Gemfile freeze
by running `bundle install --no-deployment`.
You have added to the Gemfile:
* rails (= 3.1.3)
* mysql2 (>= 0.2.6)
You have deleted from the Gemfile:
* rails (~> 3.1.3)
生产服务器上的Gemfile被手动更改,然后出现此错误。这是一个新的生产服务器,我们计划运行rails 3.1.3。我们重新启动了Linux服务器,并没有帮助。有没有办法解决这个问题?非常感谢。
将再试一次。重新提交并重新部署。但问题没有解决。我们不在开发中使用mysql,这是gemfile唯一的区别。 – user938363 2012-03-01 21:52:13
@ user938363:使用捆绑器组。查看更新的答案。 – 2012-03-01 21:55:11
看起来不错,并会尝试。正在改变database.yml文件好吗?我们的帽子将复制宝石文件和database.yml。有了这个组,就不需要复制gemfile。谢谢。 – user938363 2012-03-01 22:01:55