Sorry if this is a question like RTFM, but I'm still new to rails / ruby ββ/ bundler and a bit confused.
Our config/application.rb file has this bundle segment:
if defined?(Bundler)
and in our Gemfile we use different groups, for example.
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
But when I run RAILS_ENV=production bundle install (or bundle install --deployment ), it still installs gems from the development / testing team ...
Why is this happening or how can I do this job properly?
ruby-on-rails-3 bundler
gingerlime Jun 06 2018-12-06T00: 00Z
source share