What does bundle install --without production do?

前端 未结 2 1152
旧时难觅i
旧时难觅i 2021-02-15 15:00

Ive seen people using this and used it myself as told to do so. I just dont have a real grasp as what it actually does. I understand fully the bundle install part,

2条回答
  •  星月不相逢
    2021-02-15 15:37

    If you have a group inside your Gemfile like

    group :production do
        gem 'whatever'
    end
    

    Then when you run your bundle command on your development machine, it won't install the gems intended for use in your production environment. Basically only installing the gems you need in development on your development machine.

提交回复
热议问题