Ruby on rails 无法在生产中捆绑
我最近不得不在我的gem文件中添加两个gem。当我将它们添加到我的gemfile中时,我直接推送到我的生产服务器。 我将SSH连接到我的生产服务器,并尝试运行bundle安装。这就是我所说的错误:Ruby on rails 无法在生产中捆绑,ruby-on-rails,ruby-on-rails-3,gem,bundler,Ruby On Rails,Ruby On Rails 3,Gem,Bundler,我最近不得不在我的gem文件中添加两个gem。当我将它们添加到我的gemfile中时,我直接推送到我的生产服务器。 我将SSH连接到我的生产服务器,并尝试运行bundle安装。这就是我所说的错误: >> bundle install >> You are trying to install in deployment mode after changing your Gemfile. Run `bundle install` elsewhere and add the
>> 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
将gem添加到Gemfile时,在推送和部署之前,必须将gem绑定到开发环境中。您要寻找的答案是错误消息本身。在开发机器中安装bundle并同时推送Gemfile.lock。