Reply to topic
The perfect Rails configuration
comprug
Forum Regular

Joined: 15 Feb 2006
Posts: 347
Reply with quote
I recently got a VPS, and began to setup the typical Rails + Apache Mod_Proxy_Balancer + Mongrel Cluster, but then I discovered a better, less demanding solution. If anyone is interested in nginx, please let me know.
mdiamondstone


Joined: 02 Jul 2009
Posts: 2
Location: Newark, DE
Reply with quote
Comprug,

I know this a little late in coming, but I would love to hear about your Rails setup. As a technician, I deal with Rails tickets less often than most, but it's always good to see a new twist on an old configuration!
nathacof
Forum Admin

Joined: 24 Oct 2006
Posts: 192
Location: Dover, DE
Reply with quote
Ngnix is a beautiful thing, and can be used to Proxy virtually anything. I would be interested in your experiences!
VPS
comprug
Forum Regular

Joined: 15 Feb 2006
Posts: 347
Reply with quote
I got rid of that VPS a while ago, because I don't need it anymore. That being said, the (current) ideal configuration for Ruby on Rails is:

Ruby Enterprise Edition (Reduces memory footprint 33%)
Nginx (or apache)
Phusion Passenger

The memory footprint is a great deal smaller than that of Mongrel, and even of FastCGI. A bunch of rails hosts are now even running it in the shared environment.

To install (for Apache):
First install Ruby Enterprise Edition (http://www.rubyenterpriseedition.com/)
Install Passenger with the following:
gem install passenger
passenger-install-apache2-module

Passenger will automatically detect REE.

And that's it.
The perfect Rails configuration
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
All times are GMT  
Page 1 of 1  

  
  
 Reply to topic