我目前正在使用guard,即guard-coffeescript gem在我的OSX dev系统上编译我的javascript(以及将来我可能会添加一些更多的警卫任务)。我加入了rb-fsevent
宝石我Gemspec,现在我看到了很多Gemspecs它被加上if语句是这样的:Bundler部署错误
gem 'rb-fsevent', :require => false if RUBY_PLATFORM =~ /darwin/i
尝试部署到我的分期/生产环境,这是在Linux下运行,在服务器上执行的脚本使用bundle install --deployment
导致以下情况除外:
# bundle install --deployment
You have modified your Gemfile in development but did not check
the resulting snapshot (Gemfile.lock) into version control
You have deleted from the Gemfile:
* rb-fsevent
有没有解决这个问题的方法还是我只需要删除,如果这样我就可以部署到我的系统,并反过来安装在非OSX平台上无用的宝石?
-
编辑:我部署到我登台环境之前运行bundle install
和它第一次失败后,运行bundle check
。我删除了if语句后运行它..
我不明白为什么,如果RUBY_PLATFORM条件是不是在Gemfile.lock的?当你在服务器上安装捆绑安装时,不只是看一下Gemfile.lock? – jspooner