I am trying to setup a cron job using the whenever gem. I have written when the cron job should be run in the schedule.rb and also updated the crontab as mentioned in the railscasts episode. But the cron job does not seem to be running. I am just using it in the local machine.
This is the schedule.rb code
every :sunday, :at => "2:28am" do
runner "App.send_status", :environment => :development
end
and this is what comes when I did crontab -l
28 2 * * 0 /bin/bash -l -c 'cd /Users/felix/cron && script/rails runner -e development
'\''App.send_status'\'''
I setup the cron just 5 mins ahead(i.e at 2:23).
It gets executed, when I tried it from the command line like
script/rails runner -e development "App.send_status"
Could you please tell me whether I am missing something. Thanks!!!