Sunday 18 July 2010
Deploying Rails 2.3.8 on WebFaction with Nginx, Passenger, Git and Capistrano
Create a Rails 2.3.8 app in your WebFaction control panel: Create your WebFaction account and a new Rails 2.3.8 app. If you require a MySQL or Postgres database, you can add it through the control panel, then update your app’s config/database.yml file with the production database details. Get Git Going G... More
Tuesday 06 July 2010
Deleting Old Ruby on Rails Active Record Sessions Using Whenever and Capistrano
If you’re using the Rails Active Record session store, you’ll notice that it does not delete old sessions. I’ve found this can quickly lead to sessions tables bloated with 100,000 records. I found a good solution on a blog for this, but it required some extra work to get this running with the whenever gem in my... More
Wednesday 30 September 2009
javan-whenever + WebFaction
I have had much trouble on a few different servers (including Webfaction) getting javan-whenever working with Capistrano and I finally started reading through Capistrano’s endless logging and discovered that the useful information (a descriptive, useful error message) was hidden away in a sea of useless noise - it turns out that sh simply w... More
Tuesday 19 May 2009
My Recipe For Capistrano/Git Rails Deployment on Webfaction
The joys of Capistrano have long eluded me. I was well aware of the easy life of instant deploys that it promised, but getting it up and running on my WebFaction account proved an insurmountable task that always saw me giving up in frustration, I didn’t even try getting things going with Vlad. Every time I created a <... More
