Last Updated: February 25, 2016
·
1.237K
· swlkr

Vendor your gems

Still using rvm to manage your gems? Well, don't!

Use rbenv instead!

  1. Uninstall rvm

    $ rvm implode
  2. Install rbenv

    $ brew update
    $ brew install rbenv
    $ brew install ruby-build
  3. Use rbenv

    $ rbenv install 2.1.2
    $ rbenv global 2.1.2
  4. Vendor your gems ALL THE TIME

    $ echo 'vendor/ruby/' >> ~/.gitignore
    $ echo '---\nBUNDLE_PATH: vendor\nBUNDLE_DISABLE_SHARED_GEMS: "1"' >> ~/.bundle/config
  5. Navigate to your rails project directory then...

    $ bundle install
  6. Enjoy an rvm free system!

2 Responses
Add your response

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 ·