我想为我的 thinking_sphinx 搜索功能设置一个 crontab。我没有为此使用任何红宝石。
这是我的命令
*/59 * * * * cd path && rake thinking_sphinx:index RAILS_ENV=production
系统日志给了我这个:
CRON[2890]: (user) CMD (cd path && rake thinking_sphinx:index RAILS_ENV=production)
然而,thinking_sphinx 没有被索引。如果我手动索引它,它确实有效。