Skip to content

Instantly share code, notes, and snippets.

@dsager
Last active August 29, 2015 13:57
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dsager/6153e6aedfa67748a1ae to your computer and use it in GitHub Desktop.
Save dsager/6153e6aedfa67748a1ae to your computer and use it in GitHub Desktop.

Switch from RVM to RBENV

Uninstall RVM

rvm implode

Install RBENV and plugins

git clone https://github.com/sstephenson/rbenv.git ~/.rbenv
git clone https://github.com/sstephenson/ruby-build.git ~/.rbenv/plugins/ruby-build
git clone git://github.com/jf/rbenv-gemset.git ~/.rbenv/plugins/rbenv-gemset
git clone git://github.com/tpope/rbenv-aliases.git ~/.rbenv/plugins/rbenv-aliases
echo 'export PATH="$HOME/.rbenv/bin:$PATH"' >> ~/.bash_profile
echo 'eval "$(rbenv init -)"' >> ~/.bash_profile
# restart your shell...
type rbenv
rbenv install 1.9.3-p545
rbenv alias --auto

using RBENV for application

cd /my/app/folder
echo '.gems' > .rbenv-gemsets
rbenv alias `cat .ruby-version` 1.9.3
gem install bundler && rbenv rehash
bundle install && rbenv rehash

adding files to local gitignore

echo ".gems" >> ~/.gitignore_global
echo ".rbenv-gemsets" >> ~/.gitignore_global
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment