0

我想为我的 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 没有被索引。如果我手动索引它,它确实有效。

4

1 回答 1

0

我在 crontab 文件的顶部添加了这些,现在它可以工作了。

PATH=/usr/local/bin:/usr/bin:/bin

SHELL=/bin/bash

于 2010-08-09T18:10:53.783 回答