Switched to mongrel
I just finished switching this blog over from lighttpd + fcgi to apache2.2 + mod-proxy-balancer + mongrel.
It was a piece of cake using the following resources:
- http://forums.rimuhosting.com/forums/showthread.php?t=230
- http://blog.codahale.com/2006/06/19/time-for-a-grown-up-server-rails-mongrel-apache-capistrano-and-you/
The only problem I ran into was setting up mongrel_cluster to start on reboot.
I had added mongrel_cluster to the init scripts...
$ update-rc.d mongrel_cluster defaults
... but the cluster did not start-up on reboot.
I finally used Rimu's console-over-ssh feature to check the boot output and noticed the following:
command not found: mongrel_cluster_ctl
Oops... /usr/local/bin is not in the boot path! I simply symlinked the following:
$ ln -s /usr/local/bin/mongrel_cluster_ctl /usr/bin/
$ ln -s /usr/local/bin/mongrel_rails /usr/bin/
$ ln -s /usr/local/bin/ruby /usr/bin/
and the mongrels startup like a charm!


Commenting is closed for this article.