Multiple Rubies under apache in production server

I want to run multiple rubies on our production server. We have some ruby 1.9.3 rails 3.2 sites going live as well as keep older 1.8 sites. I understand that Passenger 3.2 will be able to do this natively but isn't live yet.
So for now, is this the best way to do this?

http://blog.phusion.nl/2010/09/21/phusion-passenger-running-multiple-ruby-versions/


The apache passenger module can't do this. You could however run passenger standalone for each app (with a different ruby version) and then proxy from apache to passenger standalone.

You could of course also proxy to unicorn, thin etc.


What about using multiple VMs/Slices for your different versions of ruby and rails, that way you have more control of your enviroment and don't have to worry about your different rubies/rails causing headaches with each other.

EDIT

Another solution that I have heard of but haven't tried is setting multiple users and running each version of ruby/rails per a different user

链接地址: http://www.djcxy.com/p/32454.html

上一篇: 用于Ruby on Rails制作服务器的Passenger之前错误地安装了Nginx

下一篇: 生产服务器中的apache下的多个红宝石