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/
PATH=$PATH:/usr/local/bin:/usr/bin:/bin:/usr/local/sbin:/usr/sbin:/sbin:/usr/local/bin/
/usr/local/bin/rake user:details RAILS_ENV=production >> /tmp/test
echo "its running"
==============================================
* Set as Cronjob now:
* 10 * * * /usr/bin/railscron
Fixed.
If any query, Please let me know. I am here to solve your issue.
Yo.!
Monday, October 25, 2010
Subscribe to:
Posts (Atom)