Ordep81 Ordep81 - 10 months ago 59
Ruby Question

What does bundle install --without production do?

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, but not the
--without production
part of it. What does this do and why would I want to use it?


If you have a group inside your Gemfile like

group :production do
    gem 'whatever'

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.