Skip to content

Instantly share code, notes, and snippets.

@dsager
Last active August 29, 2015 13:57
Show Gist options
  • 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