Vendor your gems
Still using rvm to manage your gems? Well, don't!
Use rbenv instead!
-
Uninstall rvm
$ rvm implode
-
Install rbenv
$ brew update $ brew install rbenv $ brew install ruby-build
-
Use rbenv
$ rbenv install 2.1.2 $ rbenv global 2.1.2
-
Vendor your gems ALL THE TIME
$ echo 'vendor/ruby/' >> ~/.gitignore $ echo '---\nBUNDLE_PATH: vendor\nBUNDLE_DISABLE_SHARED_GEMS: "1"' >> ~/.bundle/config
-
Navigate to your rails project directory then...
$ bundle install
Enjoy an rvm free system!
Written by Sean
Related protips
2 Responses
Hey Sean I'm trying to use your setup here but whats happening is bundler is installing my gems in each projects vendor folder. Is that what you're doing on your system?
over 1 year ago
·
You've given me no compelling reason not to use RVM. I happen to like rvm.
over 1 year ago
·
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#