Rails App Deployment
I’ve tried just about every installation methods to see what would be the best practice. I even tried fcgi and cgi against the advise of Ben. Thanks to Parallels on my Mac, this wasn’t that painful. Here are the observations from my experiment:
- Using fcgi sucks and cgi is even worse, avoid at all cost.
- Mongrel performs beautifully and clustering them is too simple (I feel guilty about it).
- On shared hosting, unless they offer apache 2.2.x, use proxy to pass the request to mongrel. By the way, shared hosting is only good for light apps and should be avoided considering the fact that VPSs have come down in prices.
- Proxy balancer on Apache and mongrel cluster is the only way to deploy.
- Capistrano documentation sucks.
- There are very little resources available. They all give you recipes, but as the saying goes, if you give a guy a fish, he’ll have a fish for a day, but if you teach him how to fish, then he’ll have it for life. I compiled Apache and mods myself to learn all the underlying concepts.
- Debian Linux Etch is the best distro!
Pragmatic Bookshelf is coming out with a book on deploying and I hope it will save time for others.
Could you recommend me a shared host that uses mongrel? I usually deploy my apps in fcgi shared host, but I have fed up of fgci crashes, timeouts and downtimes.
Thanks!
One more thing. I think that Devian Etch is the best distro too, I used it in for a educational institution and works very very well on a PC with a PentiumIII with 128Mb of RAM, and it serves a stack of Apache 2.2.+, mongrel (3 clusters) and rails. Fantastic!
Rather than struggle with a shared hosting, I use VPS. I currently use PowerVPS. You can get one without cPanel for $24.95 for my apps and it’s working beautifully. I’ll ask around for good shared host provider.
Try clicking on the Blue Box. It looks like their plan is $19.95 for what you’re looking for, but for extra few bucks more, I would go with PowerVPS.com.
I’ll check your references. Thanks!!