Always install gems to vendor/bundler
Default gem installation path for bundler is $GEM_HOME
, but it can be overridden by bundlers config files or command line option. The command below allows to set gem installation path globally.
bundle config --global path vendor/bundler
Now bundle install
will install gems into ./vendor/bundler
subdirectory of the project.
Written by Mateusz Lenik
Related protips
Have a fresh tip? Share with Coderwall community!
Post
Post a tip
Best
#Ruby
Authors
Sponsored by #native_company# — Learn More
#native_title#
#native_desc#