Last active
August 29, 2015 14:26
-
-
Save SafeAF/ac8bd496b07c32550b23 to your computer and use it in GitHub Desktop.
rvm advanced usage examples
This file contains 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
$ \curl -sSL https://get.rvm.io | bash -s stable | |
$ echo "source ~/.profile" >> ~/.bash_profile | |
$ echo "gem: —no-document" >> ~/.gemrc | |
$ rvm autolibs enable | |
$ rvm install ruby | |
$ gem install rails | |
$ rvm use 2.2 --default | |
# Update your RVM to the latest statble version. | |
rvm get latest | |
# Update your RVM to the most recent version. (most bug fixes) | |
rvm get head | |
# Reinstall all your Rails gemset gems | |
rvm gemset empty project_gem_set && gem install bundler && bundle install | |
rvm use 1.9.2@projectname --create | |
"rvm use 1.9.2@projectname" >> .rvmrc | |
# test rvm | |
$ source ~/.rvm/scripts/rvm | |
$ type rvm | head -n 1 | |
rvm is a function | |
$ rvm requirements | |
# use rvm | |
$ rvm list known | |
$ rvm install 1.9.2 | |
$ rvm use 1.9.2 | |
rvm info | |
rvm list | |
rvm gemset list (~/.rvm/gems) | |
http://stackoverflow.com/questions/15708916/use-rvmrc-or-ruby-version-file-to-set-a-project-gemset-with-rvm | |
cat > .ruby-version | |
2.0.0-p247 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment