Rails bundle install production only

后端 未结 2 1806
傲寒
傲寒 2021-01-30 09:45

I\'m still new to rails/ruby/bundler and am a little confused.

In our config/application.rb file there\'s this bundler segment:

if defined?(         


        
2条回答
  •  逝去的感伤
    2021-01-30 10:35

    Take a look at --without option:

    bundle install --without development test

    By default Bundler installs all gems and your application uses the gems that it needs. Bundler itself knows nothing about Rails and the current environment.

提交回复
热议问题