Last active
December 29, 2015 09:09
-
-
Save treble37/7648688 to your computer and use it in GitHub Desktop.
rvm cheatsheet
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
rvm get stable | |
rvm list known | |
rvm install 2.1.0 | |
rvm gemset create mountainlion_rails4 | |
gemset created mountainlion_rails4 => /home/bruce/.rvm/gems/ruby-2.0.0-p247@mountainlion_rails4 | |
rvm use ruby-2.0.0-p247@mountainlion_rails4 | |
rvm --ruby-version use 1.9.3@my_app | |
The second form will create both .ruby-version and .ruby-gemset. | |
rvm @gemset_name do gem list | |
rvm gemset copy 1.8.7@rails3 1.9.2-head@rails3 | |
how to upgrade ruby with rvm: rvm get stable; rvm list known (list known rubies); rvm upgrade 1.9.2-p136 1.9.2-p180 | |
#Migrate when there are two versions of ruby | |
$ rvm migrate 1.8.6-p420 rbx-1.2.3 | |
##Installing mailcatcher with .ruby-version | |
rvm ruby-2.0.0-p353@billingapp_mailcatcher --ruby-version do gem install mailcatcher | |
rvm wrapper ruby-2.0.0-p353@billingapp_mailcatcher --no-prefix mailcatcher catchmail | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment