http://lee.jarvis.co/rvm-plays-nice-on-production/
cut and paste just in case:
- Switch to root user:
su root - Grab the latest RVM code from github:
git clone git://github.com/wayneeseguin/rvm.git cd rvm./install- Watch the pleasures of RVM christening your system with its awesome juicy curvaceous..ness
- Remove the rvm folder:
rm -rf rvm - Add rvm group:
groupadd rvm - Add yourself to said group:
usermod -aG rvm injekt - Add
rvm_pathto/etc/rvmrc:echo "export rvm_path=/usr/local/rvm" > /etc/rvmrc - Open up
/etc/profileand add these lines - Give the rvm group ownership to it’s rightful rubies:
chown -R root:rvm /usr/local/rvm - Give write access to all members of the rvm group:
chmod -R g+w /usr/local/rvm - Switch back to non-root:
exit - Dance a little bit
rvm install <ruby version>- Eat sammich
- Set default Ruby version:
rvm use <ruby version> --default - Profit
* First you need to add all users that will be using rvm to ‘rvm’ group,
and logout – login again, anyone using rvm will be operating with `umask u=rwx,g=rwx,o=rx`.
* To start using RVM you need to run `source /etc/profile.d/rvm.sh`
in all your open shell windows, in rare cases you need to reopen all shell windows.