Especifica caminho completo para o Python funcionar no cron. #514

parent c4a01521
Pipeline #146879929 passed with stages
in 8 minutes and 51 seconds
......@@ -10,7 +10,7 @@ export DB_PORT="${DB_PORT:-5432}"
# Faz o setup da cron caso a entrada ainda não exista.
echo "Setuping cron"
# Executes 'manage.py runcrons' at each minute:
echo "* * * * * python /radar/radar_parlamentar/manage.py runcrons >> /var/log/radar/cronjob.log 2>&1" > mycron
echo "* * * * * /usr/local/bin/python /radar/radar_parlamentar/manage.py runcrons >> /var/log/radar/cronjob.log 2>&1" > mycron
crontab mycron
rm mycron
/etc/init.d/cron start
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment