Nov 22, 2006

Rails Deployments For Profit and Fun

I’ve been living, sleeping, eating, and breathing Rails deployment the past couple of weeks. It’s to the point that, once I had a breather from my professional Rails obligations, I found myself building a quick-n-dirty blog engine and doing the whole Nginx + mongrel_cluster + Capistrano deployment on my Slicehost VPS just for fun. Sick.



If I’ve been unavailable previous to this week I assure you that it was with good cause. My clients were running our web application product through focus groups, which was exciting, informative, trying, and totally frustrating all at once. At least I didn’t have to worry about was the stability of our app thanks to the swell guys at Engine Yard. I always arch a skeptical eyebrow at video testimonials and similar pimping, but after working with them over a weekend to make sure we were rock solid, I’d shill for them. There’s hosting in the “put your bits on our machines and we’ll move ‘em” sense, and then there’s the cushy red carpet that Engine Yard rolls out. Worth every penny.



Once that was settled late last week I turned my attentions to my ailing domain. Some of you may have noticed some URL breakage since I moved servers, thankyouverymuch TextPattern/PHP/Apache. Since there aren’t any good hosted blogging services I took this as an opportunity to move my blog to a homebrew Rails application, in the process improving the odds that I’ll never have to look at PHP ever again.



This site is now a minor example of the latest and greatest features of Edge Rails (soon to be Rails 1.2, mostly). If there were any brilliant tricks I’d release the source, but honestly it looks a great deal like restolog thanks to strict adherence to Rails conventions. I’m using a sessionless design and cookie-based authentication to keep things speedy, and the blog is its own admin interface once I’m logged in. I think I’ve spent maybe six hours on it, including development, migration from TextPattern, design, and deployment.



If you’re reading this in a browser, you may have noticed that the site’s design has changed a touch. Same colors, different typography, even more minimal. No offense to Hemingway but that look is everywhere now. I had a good run with it, though, lots of compliments. Hopefully nobody will be too put off by this new design. Or, rather, hopefully there’s not enough to it to put anyone off.



The other thing that desperately needed correcting is my lack of a public code repository. This has been remedied with code.al3x.net, presently running a bleeding-edge version of Collaboa. I’ll be sorting out public svn access once I have anything there that requires pulling more than one or two files, but this should meet the needs of anyone looking for my modified TextPattern -> MT export script or my TextPattern comment count fixer-upper.



The moral of all this is that Rails deployment is addictive. Use it for your work development and everything else will feel kludgey. You’ll be up all hours, wishing you could make a quick change and rake remote:deploy, all hallucinating that James Duncan Davidson is crawling around your ceiling, Trainspotting-style. Don’t let this happen to you.

1 comments:

al3x said...

<em>This comment was imported.</em>
Author: <a href="http://www.engineyard.com">Tom Mornini</a><br />
Posted: 2006-12-02 18:42:48<br />
Thanks for the nice comments, Alex!

Also, keep an eye out for hosted Mephisto blogging coming soon via a customer at Engine Yard!