virualhost

setup mongrel clusters and apache proxy serving via virtual host debian lenny

Assuming you have already installed Rails/Ruby

sudo gem install mongrel

sudo gem install mongrel_cluster

Then run

mongrel_rails cluster::configure -e production -p 3000 -N 2 -c /home/yourdir/yourapp -a 127.0.0.1

"production" assumes you have configured your app for production. Otherwise run "development"

You may need to open ports in iptables.

Output should be:

Writing configuration file to config/mongrel_cluster.yml.

To start mongrel cluster, cd to the rails app, then:

 

Syndicate content (C01 _th3me_)