Solution for: #28: crontab settings for deploying Ultrasphinx
Sample crontab for ultrasphinx
- yliu on March 31, 2009, 02:41 AM UTC
Had to remove the line continuation characters because Ubuntu's crontab seemed to complain about it as malformed. Also, removed the leading slash so that ultrasphinx log output will log to the application-specific log directory.
*/6 * * * * bash -c 'cd /path/to/production/current/; RAILS_ENV=production rake ultrasphinx:index:delta >> log/ultrasphinx-index.log 2>&1'
1 4 * * * bash -c 'cd /path/to/production/current/; RAILS_ENV=production rake ultrasphinx:index:main >> log/ultrasphinx-index.log 2>&1'
*/3 * * * * bash -c 'cd /path/to/production/current/; RAILS_ENV=production rake ultrasphinx:daemon:start >> log/ultrasphinx-daemon.log 2>&1'
References used:
Ultrasphinx - File: DEPLOYMENT_NOTES
( http://blog.evanweaver.com/files/doc/fauna/ultrasphinx/files/DEPLOYMENT_NOTES.html ) - found by yliu on March 28, 2009, 07:37 AM UTC