ruby on rails 3 - Why is my cron Job not running on OS X (configured by whenever gem)? -
i have set cron job, using great whenever gem.
every 1.minute runner "peerreview.start_feedbacks" end
i set cron job with:
whenever --set environment=development --update-crontab
the crontab file looks fine, shows:
* * * * * /bin/bash -l -c 'cd /path_to_app/ && script/rails runner -e development '\''peerreview.start_feedbacks'\'' >> log/cron_log.log 2>&1'
if execute runner, works fine, however, cron job doesn^t seem work (also don't see log being created).
what missing?
(i'm working on mac os x, 10.6.6)
update
i think identified problem: path name contains spaces, , wasn't handled correctly whenever gem, crontab filled incorrectly (the needed backslashes missing), cronjobs executed, path command wrong.
all above correctly done.
the rails app in directory spaces in path names, spaces not escaped whenever gem, when setting crontab.
Comments
Post a Comment