#28: crontab settings for deploying Ultrasphinx

Solved!
the SelfSolved instance deployed uses Ultrasphinx for its full-text indexer and search provider. The sphinx indexer needs to be run regularly to index new text that appears on the site.

I need crontab incantations to set the indexer to create delta indexes and merge them regularly with the main index.

Sample crontab for ultrasphinx

2
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'

Think you've got a better solution? Help 92049143cabb7ba896d7c06e19906303_small yliu out by posting your solution

Ultrasphinx - File: DEPLOYMENT_NOTES

http://blog.evanweaver.com/files/doc/fauna/ultrasphinx/files/DEPLOYMENT_NOTES.html - found by 92049143cabb7ba896d7c06e19906303_small yliu on March 28, 2009, 07:37 AM UTC

The author of the ultrasphinx plugin has sample crontab settings

Tags: ultrasphinx sphinx full-text indexing author README deployment