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

Wednesday 19 August 2009

Configuring A WebFaction Email Account In Outlook Express

I’ve had a number of clients lately who use Windows (egad!) and they have been struggled to understand how to configure their new WebFaction email account using Outlook Express on Windows. This guide works for me. You also might want to use SSL for POP3 incoming in which case your port would be 995. 1) First go to Outlook Express, click Tools => Accounts More

Wednesday 03 June 2009 | 2 comments

My Recipe For Sinatra/Thin/Rack/Webfaction

The solution I am using for deploying a Sinatra app that runs on Thin and Rack on Webfaction, without Capistrano or Git, just using Rsync and Rake. Create the application: myapp config config.ru config.yml db migrate rake migration files myapp.sqlite3.db myapp.rb lib models public stylesheets images javascripts Rakefile tmp/ views layout.erb myview.erbMore