Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I'm wondering what would be the best approach to hosting multiple Rails applications where each application has a different gemset and may possibly use a different version of Ruby. I'm thinking of running RVM to manage the different gemsets for each application, and having each application run on their own passenger standalone instance.

My only concern around this approach is the memory footprint of having multiple passenger-standalone servers running vs. just having one serve them all. In any case, I'm pretty new to this stuff, so I'm open to suggestions on what would be the best practice for this kind of setup.

I also read this blog post and I was wondering what people think of it. It sounds like a reasonable setup and speaks to my OCD about keeping things clean and separate between applications.

share|improve this question

It's quite easy, since Passenger 3.2 will support different ruby versions out-of-the box. Only thing is, 3.2 has not been released yet. Just make sure you set the proper passenger_ruby and RVM/Capistrano can do the rest.

Read more in this article:

Note that I do run 3.2 on :-)

share|improve this answer
Could you add on which user account and under which rvm path (sudo, www-data, ..) you set up the experimental passenger version? Would you follow these multi user installation guide for rvm? – JJD Jun 8 '12 at 14:04

I'm author of the mentioned article.

Using separate instances of passenger standalone or unicorn is good idea, they have low memory overhead and will allow good separation.

In best case you would run each application as separate user which will prevent accessing other applications data.

If i remember correctly one instance of nginx (it's used for passenger standalone) uses about 3MB of ram - it's very low in my opinion.

There is new option - passenger 3.2, it's in beta but it should allow running different rubies from one server.

share|improve this answer
hey mpapis. your article code highlighting is messed up at the moment. could you please fix it? – JJD Jun 8 '12 at 11:23
yes it does not look good, I will work on it a bit later today – mpapis Jun 8 '12 at 18:56
it should be better now, I had two syntax highlighters enabled at once. – mpapis Jun 8 '12 at 23:01

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.