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 为什么我的生产环境在Rails中引入了开发宝石?_Ruby On Rails_Ruby On Rails 3_Rubygems_Bundler - Fatal编程技术网

Ruby on rails 为什么我的生产环境在Rails中引入了开发宝石?

Ruby on rails 为什么我的生产环境在Rails中引入了开发宝石?,ruby-on-rails,ruby-on-rails-3,rubygems,bundler,Ruby On Rails,Ruby On Rails 3,Rubygems,Bundler,我不知道为什么会这样,有什么线索吗 $ echo $RAILS_ENV production ---- $ bundle | grep debug Using ruby-debug-base19 (0.11.25) Using ruby-debug-base19x (0.11.29) Using ruby-debug19 (0.11.6) ---- $ gem list | grep debug ruby-debug-base19 (0.11.25) ruby-debug-base19x

我不知道为什么会这样,有什么线索吗

$ echo $RAILS_ENV
production
----
$ bundle | grep debug
Using ruby-debug-base19 (0.11.25) 
Using ruby-debug-base19x (0.11.29) 
Using ruby-debug19 (0.11.6) 
----
$ gem list | grep debug
ruby-debug-base19 (0.11.25)
ruby-debug-base19x (0.11.29)
ruby-debug19 (0.11.6)
档案:

group :development do
  gem "mailcatcher", "~> 0.5.5"
  gem 'capistrano',           '~> 2.9.0'
  gem 'capistrano-ext',       '1.2.1'
  gem 'ruby-debug19', :require => 'ruby-debug'
  gem 'ruby-debug-base19x'
  gem 'ruby-debug-base19'
end

确保您正在使用部署

bundle install --without development,test
Bundler正在安装Gem文件中不属于这些组的所有Gem

如果您使用的是capistrano,则可以在deploy.rb中指定


确保您正在使用部署

bundle install --without development,test
Bundler正在安装Gem文件中不属于这些组的所有Gem

如果您使用的是capistrano,则可以在deploy.rb中指定


此外,可能值得签出目录中的
.bundler/config
文件,它应该告诉您它跳过了开发和测试组。此外,可能值得签出目录中的
.bundler/config
文件,它应该告诉您它跳过了开发和测试组。