From 063e5d1e4480469adcd7925e369328b7a06ce582 Mon Sep 17 00:00:00 2001 From: Piotr Gawron <piotr.gawron@uni.lu> Date: Wed, 14 Jun 2017 16:53:23 +0200 Subject: [PATCH] Update readme.md --- readme.md | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/readme.md b/readme.md index 842b8273..4d27a325 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 -- GitLab