Upgrading tracknowledge.org
2008-09-07
I’m upgrading my Rails testbed, http://www.tracknowledge.org, with the latest and greatest. The Rails world moves VERY quickly and staying on top of it can be challenging. When I built it initially in April 2008, nginx + mongrel was the typical deployment model. I stuck with Apache though since it was already installed on the machine; installing and configuring nginx is a known PITA. Now I’m going to install Phusion’s Passenger and Ruby Enterprise Edition. Passenger and REE have some big advantages over the typical mongrel model, mostly around memory consumption – always a good thing on a limited VPS slice like I have. The plan:
- “yum update” to get the latest security and OS updates
- Install REE.
- Install Passenger.
- Configure apache to use REE and Passenger.
- Deploy my latest tracknowledge source running on Edge Rails (i.e. 2.2 alpha).
You might wonder why I’m running Edge Rails. Well, I wanted to get the multithreading and connection pooling features in ASAP so I can test them. DataFabric does rely on some of the innards of ActiveRecord’s ConnectionAdapter class so I’ll probably need to make changes to get it working on ActiveRecord 2.2.
And it’s done! Wow, that was pretty easy. The hardest part by far was simply updating my app to list its gem dependencies and install those gems in the new gem repo for REE. Kudos to the Phusion guys for making Rails deployment MUCH MUCH simpler!