diff --git a/readme.md b/readme.md index 842b82732fb6795b10be63d4985bdf9df5bb184c..4d27a32597259558d9e79c52b8a79486ccf139fa 100644 --- a/readme.md +++ b/readme.md @@ -175,6 +175,15 @@ server { - extract static files and make them available via nginx: `./manage.py collectstatic` - you start application by starting gunicorn and nginx: `service gunicorn start`, `service nginx start` +## Cron jobs (weekly emails) + +If weekly emails are required then cron must be edited to fire periodically django function that send emails. + +``` +> crontab -e +*/5 * * * * source /home/ubuntu/.bashrc && source /home/ubuntu/work/your-project/bin/activate && python /home/ubuntu/work/your-project/src/manage.py runcrons > /home/ubuntu/cronjob.log +``` + ## Operations ### Public holidays