Exit Wiki

RVM is pretty cool.

Using a System ("Multi-User") RVM setup that users can share

In certain situations I like installing RVM in a "multi-user" configuration. For example, I might install RVM on a production server to isolate separate services in a Service Oriented Architecture type stack.

It's not obvious how to set that up:

First, install RVM system wide by following the instructions on the RVM install page

Secondly, add users to the RVM group, as RVM uses this group to control access to the RVM directories etc. (Thanks to this gist)

To add everyone to the RVM group (at least on Ubuntu):

  1. get id of rvm group from /etc/group
  2. Change the FOURTH field in /etc/passwd of every user you want to add to the RVM group: this sets their primary group to RVM

RVM and Capistrano

I had a problem with Capistrano giving funny errors (not finding a Ruby that I had installed via RVM). I figured it out, then wrote a blog post on it Capistrano & System wide RVM: creating gemsets as part of a deploy:setup

Comments:

Add comments by visiting: RVM/Comments

RVM (last edited 2011-08-05 16:02:36 by RyanWilcox)