2012-03-06 42 views
0

我不知道为什么会发生这种情况,任何线索?为什么我的生产环境在Rails中引入开发宝石?

$ 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) 

的Gemfile:

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 

回答

4

确保您使用

bundle install --without development,test 

捆扎机部署正在安装是是你的Gemfile这些组中的所有宝石。

如果您正在使用Capistrano的,你可以在你的deploy.rb指定

set :bundle_without, [:development, :test] 
+1

此外,它可能是值得检查'.bundler/config'文件在你的目录,它会告诉你它的跳跃开发和测试小组。 – 2012-03-06 08:53:51

相关问题