Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/ruby-on-rails-3/4.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Ruby on rails 无法在生产中捆绑_Ruby On Rails_Ruby On Rails 3_Gem_Bundler - Fatal编程技术网

Ruby on rails 无法在生产中捆绑

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

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