Skip to content

Instantly share code, notes, and snippets.

@Jpuelpan
Last active August 29, 2015 13:56
Show Gist options
  • Save Jpuelpan/8995603 to your computer and use it in GitHub Desktop.
Save Jpuelpan/8995603 to your computer and use it in GitHub Desktop.
RVM installation Multi User. Many users each one with his own gemsets, but only one shared Ruby

Multi-User RVM

From a user with sudo permissions

$ \curl -sSL https://get.rvm.io | sudo bash -s stable
$ source /etc/profile

Install Ruby

$ rvm requirements
$ rvm install ruby-2.1.0
$ rvm use ruby-2.1.0 --default

Create another user and add to the RVM group

$ adduser app-user
$ sudo usermod -a -G rvm app-user

Log in as app-user, set a default ruby and set the gemsets for the application

$ rvm use ruby-2.1.0 --default
$ rvm user gemsets

The End :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment