Remember to vendor your gems

August 9, 2014

bundler

Vendor Everything as Ryan McGeary told us back in 2011 apparently still applies, so remember to tell bundler to install your project gems inside the project’s vendor/bundle directory, eliminating the need of polluting the system wide gemset and the conflicts that can cause when using different versions of the same gem among projects. Also obviates the need to use rvm gemsets, which seemed to me like a little bit of extra work

$ bundle install --path vendor/bundle

Stefan Wrobel shares a nice tip to configure bundle to perform installs to your project vendor/bundle directory by default (instead of going to your system wide gemset)

$ bundle config --global path vendor/bundle

Comments

comments powered by Disqus