Isnor Creative
Isnor Creative Blog
Ruby, Ruby on Rails, Ember, Elm, Phoenix, Elixir, React, Vue

Jun 17, 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 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….


I am available for Ruby on Rails consulting work – get in touch to learn more.

Gordon B. Isnor

Gordon B. Isnor writes about Ruby on Rails, Ember.js, Elm, Elixir, Phoenix, React, Vue and the web.
If you enjoyed this article, you may be interested in the occasional newsletter.

I am now available for project work. I have availability to build greenfield sites and applications, to maintain and update/upgrade existing applications, team augmentation. I offer website/web application assessment packages that can help with SEO/security/performance/accessibility and best practices. Let’s talk

comments powered by Disqus