My aim is to set up a local development environment with Rad Rails, working off of a Subversion repository here on AWebFactory on Site5. Installing or updating the Production Environment is imply a matter of doing a checkout or update to the production folder.
My own setup is modelled on this excellent Site5 Ruby Forum guideline: OVERVIEW: setting up ROR, SVN and Switchtower on Site5
Initially, at least, I am not going to bother with Switchtower, probably since I don’t feel the need for that functionality yet. In any case, database.yml is set up for development and production configurations as appropriate, so to run on Fast CGI in production, it is simply a matter of an update from the Subversion repository on AWebFactory.
This is probably just laziness, since in a heavy production environment Switchtower (or some script driven or ant-like deployment system) will probably become essential.
Locally (Buenos Aires), I work on a Slackware 10.2 box. For some weird reason I decided to go whole hog on a SATA drive and AMD64 processor (world not ready). But it does zip.
In my case I am going with a local database and WEBrick setup for development, and a remote AWebFactory production database and FastCGI setup.
I will document here how I set that up, while using the examples from the Agile Web Development with Rails (I know, I hate actually shelling out hard cash for a… book! But someone said something somewhere on the web about going without a pizza once in a while isn’t such a bad thing. From working with the first couple of chapters it looks pretty indispensable, really.
So I hope to include a review of that book as well, here.
Content
Victor Kane (ProjectMaster) and awebfactory.com.ar