I tend to install RVM on production servers to be able to use Rubies that 
are not part of the underlying OS. Often system tools are depend on Ruby, 
too, and if system ruby is 1.8.7, things could break if you simply replaced 
it with 1.9. Having said that, I install rvm, my Ruby of choice inside it 
and start having bundler and passenger in the "global" gemset. nginx is (as 
a non-system package) installed into /opt as passenger suggests.

Each app is deployed using a separate user account, thus in a home 
directory of its own, with bundler keep independent copies of needed gems 
for that app. Like that, a number of apps can happily run in parallel. 


Am Mittwoch, 7. März 2012 22:41:04 UTC+1 schrieb robert:
> i'm in the process of doing a clean install of Radiant 1.0 on Ubuntu 11.10 
> with Passenger and Nginx. i followed the instructions and was able to get 
> it installed with RVM successfully (thank you for the step by step 
> instructions). However, i was wondering whether it is a good idea to use 
> RVM on a production machine instead of a development machine. Are any of 
> you doing this? Is this a bad idea? If using RVM is preferred, are you 
> installing Radiant and Passenger in the appuser's home, and then Nginx in 
> /opt or somewhere else? Is the best practice to install each Rails app as a 
> separate user, or the same appuser with different directories/gem sets/etc? 
> Lastly, i'm getting a 403 error when trying to view the site, and i think 
> i'm missing something really obvious. Any hints on which 
> directories/permissions i should check? Thanks.
> robert

Reply via email to