chendriksen
chendriksen

Reputation: 1024

Change bundle install location

I've somehow changed the configuration of bundle install, so it now creates a /vendor/bundle folder in my rails project, and puts all the gems there.

How can I reset my bundle config, so it installs the gems globally instead?

Upvotes: 0

Views: 1350

Answers (1)

Anshul Goyal
Anshul Goyal

Reputation: 77073

Remove the .bundle directory from your project root and then do a bundle install instead of the bundle install --path vendor like previously.

The .bundle/config file stores the local path for installing gem location, if gems are installed within the app, and bundler picks up those settings next time onwards by default.

Upvotes: 3

Related Questions