So, after numerous issues with Mongrel and Mongrel Cluster, as reported in our last Rails-related post, and after following all the buzz, we decided to give Phusion Passenger a try – we were not disappointed!
Don’t get us wrong, we still prefer Mongrel as our development server, and there are instances where Mongrel Cluster makes lots of sense (load balancing, for example), but we wanted to explore the reputed simplicity of Passenger –
..And we wanted to multiplex multiple websites onto one Apache instance, simply and easily!
So, we followed the gem-basedinstallation instructions here: http://www.modrails.com/install.html
After installation with Gem, the nicely-written text mode installer guided us through the install process for the ‘dev’ packages, and then compiled itself from source – Very nice! A polished touch!
So after one global include in /etc/apache2/conf.d/passenger:
LoadModule passenger_module /usr/lib/ruby/gems/1.8/gems/passenger-2.2.4/ext/apache2/mod_passenger.so PassengerRoot /usr/lib/ruby/gems/1.8/gems/passenger-2.2.4 PassengerRuby /usr/bin/ruby1.8
We were able to use multiple files in ‘sites-available’ of the format:
<VirtualHost *:80> ServerName www.yourhost.com DocumentRoot /somewhere/public # ^-- be sure to point to 'public' within your rails app! </VirtualHost>
To easily achieve multiple rails apps, with disparate domains, served by the single instance, reasonably painlessly – Note that you do have to have the domains point to the correct IP address, of course
Our verdict: All in all pretty painless and professional – and the benchmarks seem to support great performance –
So, if you want us to install Passenger for you, just indicate this in the “Notes” field when you place your order, and we’ll get it done for you.
We will likely soon make it the default, if no objections are heard from you, our customers, in the near future.
Please note that we can do this on top of either Turnkey rails, or our regular Rails instance.
Rails 2.3.3 now available
Please note that Rails 2.3.3 is also now available from the dropdowns when you place your order!
Note also that Phusion Passenger also offers an Nginx version – we will be happy to install the highly acclaimed Nginx web server, along with the corresponding version of Phusion Passenger, via custom quote – Please contact us today regarding getting this set up for you!