$ bundle install [--system]
Gems will be installed to your default system location for gems. If your system gems are stored in a root-owned location (such as in Mac OSX), bundle will ask for your root password to install them there.
While installing gems, Bundler will check vendor/cache and then
your system's gems. If a gem isn't cached or installed, Bundler will try to
install it from the sources you have declared in your Gemfile.
The --system option is the default. Pass it to switch back after
using the --path option as described below.
vendor/bundle.
$ bundle install --path vendor/bundle
bundle commands or calls to Bundler.setup or
Bundler.require will remember this location.
$ bundle install --without development testLearn More: Groups
$ bundle install --deployment
The --deployment flag activates a number of deployment-friendly
conventions:
vendor/bundleGemfile.lockbundle package was run, do not fetch gems
from rubygems.org. Instead, only use gems in the checked
in vendor/cache
Many thanks to Bundler's contributors and sponsors