1. Goto directory
2. To get into the cron and set your schedule
crontab -e
* * * * * cd /var/www/rails_app && /usr/bin/rake xapian:rebuild_index models="Post"
Automatic refresh Ruby file
1. Goto directory
2. To get into the cron and set your schedule
crontab -e
* * * * * /usr/bin/ruby /var/www/rails_app/script/runner /var/www/rails_app/
app/dotask.rb
or
* * * * * /usr/bin/ruby /var/www/rails_app/app/dotask.rb
Related Link:
http://seanbehan.com/
http://www.hostingrails.com/
No comments:
Post a Comment