Rails bundle install production only

后端 未结 2 1759
傲寒
傲寒 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:34

    An alternative solution is to use the bundle-only ruby gem. It can be used as follows:

    > gem install bundle-only
    > bundle-only production
    

    This library does not pollute your bundler configs or augment Gemfile.lock; it is a simple alternative to the built in bundle --without every other group option that bundler provides.

提交回复
热议问题