我最近不得不在我的 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