无法捆绑生产

时间:2011-09-22 22:49:53

标签: ruby-on-rails ruby-on-rails-3 gem bundler

我最近不得不在我的gem文件中添加两个宝石。当我将它们添加到我的gemfile时,我直接推送到我的生产服务器。 我通过SSH连接到我的生产服务器,并尝试运行 bundle install 。这是我的错误:

>> 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:
* RedCloth
* tanker

1 个答案:

答案 0 :(得分:7)

当您将宝石添加到Gemfile时,您必须在您的开发环境之前进行捆绑推送和部署。