道歉,如果这是一个RTFM型的问题,但我还是新的铁轨/红宝石/捆扎机和我有点困惑。
在我们config/application.rb
的文件有这个捆绑段:
if defined?(Bundler)
# If you precompile assets before deploying to production, use this line
Bundler.require(*Rails.groups(:assets => %w(development test)))
# If you want your assets lazily compiled in production, use this line
# Bundler.require(:default, :assets, Rails.env)
end
在我们Gemfile
我们使用不同的群体,如
group :development, :test do
gem "rspec-rails", ">= 2.7.0", :group => [:development, :test]
gem 'shoulda-matchers'
gem 'watchr'
gem 'spork', '~> 1.0rc'
gem 'spectator'
gem 'debugger'
gem 'wirble'
end
但是,当我运行RAILS_ENV=production bundle install
(或bundle install --deployment
),它仍然在开发/测试组安装宝石...
为什么出现这种情况还是我怎样才能使这项工作正常?