2

我最近不得不在我的 gem 文件中添加两个 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
4

1 回答 1

7

当您将 gem 添加到您的 Gemfile 时,您必须在推送和部署之前将其打包到您的开发环境中。

于 2011-09-22T22:55:06.283 回答