Monday, October 25, 2010

[RSOLVED] [Rails Crontab Not Running]`bin_path': can 't find executable rake for Cronjob not running

Hey Guys,

I have issue with some ruby script and rails, rake script not running as cronjob,
so you can use the following solution.

[root@localhost  ] vi /usr/bin/railscron
#! /bin/bash

cd /app/production/current/


/usr/local/bin/rake  user:details RAILS_ENV=production >> /tmp/test
echo "its running"

* Set as Cronjob now:

* 10 * * *  /usr/bin/railscron

If any query, Please let me know. I am here to solve your issue.