无法在生产中捆绑
问题描述:
我最近不得不将宝石添加到我的宝石文件中。当我将它们添加到我的gemfile时,我直接将它推送到我的生产服务器。 我SSH'd到我的生产服务器,并试图运行捆绑安装。这是我去的错误:无法在生产中捆绑
>> 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
答
当您添加宝石,你的Gemfile,你必须在你的开发环境捆绑前推部署。
你正在寻找的答案是在错误信息本身。在开发机器上安装捆绑软件,然后推送** Gemfile.lock。 – Fabio