Resetting the bundler --path
When running bundler install
you can pass an option --path
:
bundle install --path ./gems
Which will specify where to install the gems. This is a one time option.
Everytime you invoke bundle
from here on in you’ll see that its using the
directory you specificed with the –path variable as the gem directory.
Bundler keeps track of this option in the .bundler/config
file in the folder
from where bundler was initially run. That file looks like this:
---
BUNDLE_PATH: "./gems"
BUNDLE_DISABLE_SHARED_GEMS: "true"
To reset the gems path back to the default, remove the BUNDLE_PATH
line from
the bundle/config
file.f