Ordep81 Ordep81 - 1 year ago 133
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?

Answer Source

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.

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download