Llamarada

Tomar de la élite lo que pertenece a todos

Remember to Vendor Your Gems

| Comments

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 vendor install
1
$ 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)

tell bundle to install gems to vendor/bundle inside your project by default
1
$ bundle config --global path vendor/bundle

Comments