【发布时间】:2011-11-24 10:44:06
【问题描述】:
我的Gemfile 和Gemfile.lock 位于Git 存储库中,例如http://gembundler.com/deploying.html
我使用'rbconfig' 防止在Linux 生产服务器上加载rb-fsevent,但capistrano 在执行命令'bundle install' 时失败
我使用 capistrano 和 require 'bundler/capistrano'
查看堆栈跟踪:
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.
You have deleted from the Gemfile:
rb-fsevent
在我的Gemfile:
case HOST_OS
when /darwin/i
gem "rb-fsevent"
end
如何避免这种情况?
【问题讨论】:
-
我认为这个 SO 问题会回答你的问题:Bundler error on deployment
标签: capistrano bundler