Blog
Wednesday 17 June 2009
javan-whenever with ec2onrails
After reading the Railscast about javan-whenever, a great ruby gem that allows you to write cron jobs in highly readable ruby with an impossible to forget syntax (compared to the daunting obliqueness of straight cron), I tried to get it running with a site I am working on that is deployed by http://www.ca... 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
Tuesday 19 May 2009 | 1 comment
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
Saturday 09 May 2009
Cucumber + Paperclip
I just spent an inordinately long time trying to figure out how to get Cucumber tests to create records with Paperclip files attached. Those of you with an equally troglodytic IQ may thus find this snippet useful. The idea here, which is probably obvious, is that I have an upload-files folder in my Cucumber features folder in the root of the Rails application. I put the required sample files there. Be warned that this is actually saving the files to your public folder and they w... More
Tuesday 05 May 2009
Wilderness CMS Rails 2.3 Engines Plugin
I recently started working on what I thought was going to be an extension on the Bort Rails starter-site idea which I am a huge fan of. My initial idea was to include a default user admin panel but then I kept going and it evolved into something more elaborate. I’m not sure if I’m finished, or how I want it to function... More
