2010-08-09 4 views
0

Je voudrais configurer un crontab pour ma fonction de recherche thinking_sphinx. Je n'utilise pas de gemmes de rubis pour cela.crontab config issues

ceci est ma commande

*/59 * * * * cd path && rake thinking_sphinx:index RAILS_ENV=production 

Le syslog me donne ceci:

CRON[2890]: (user) CMD (cd path && rake thinking_sphinx:index RAILS_ENV=production) 

Pourtant, le thinking_sphinx ne reçoit pas indexé. Cela fonctionne si je l'indexe manuellement.

Répondre

0

J'ai ajouté ceux-ci en haut du fichier crontab, maintenant cela fonctionne.

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

SHELL =/bin/bash