我Gemfile
和Gemfile.lock
是Git
库像http://gembundler.com/deploying.htmlGemfile.lock和gem的特定平台依赖关系?
我用'rbconfig'
为防止Linux的生产服务器上加载rb-fsevent
但斯特拉努上执行命令'bundle install'
失败我使用Capistrano的与要求'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
如何避免这种情况?
我觉得这太问题会回答你的问题: [上部署捆扎机错误](http://stackoverflow.com/questions/6472785/bundler-错误的部署) – joshhepworth