我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