javan-whenever with ec2onrails

Wednesday 17 June 2009 | 0 comments

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 Capistrano to ec2 with ec2onrails and requires a number of cron jobs. Troglodyte that I am, it took much headslamming, hair-pulling and full-fledged teary breakdowns before I finally email the person who wrote the gem and he suggested that Capistrano was probably issuing the command as another user other than the one I was trying to get a crontab for. Argh! With his suggestion, this is what I finally found did the job:

Apparently, there is also a -user option in whenever that can be used to accomplish similar goals....

Comments

Previous Articles

Wednesday 16 December 2009

Stoptoad: Resolve All Hoptoad Errors

Thursday 19 November 2009

Acts As Lockdown

Wednesday 30 September 2009

javan-whenever + WebFaction

Sunday 30 August 2009

Sinatra To Do List Application