Skip to content
Snippets Groups Projects
Commit 0439f52a authored by Piotr Gawron's avatar Piotr Gawron
Browse files

documentation regarding cron

parent 3d63c2b4
No related branches found
No related tags found
1 merge request!47Resolve "Email to technician"
...@@ -181,7 +181,8 @@ If weekly emails are required then cron must be edited to fire periodically djan ...@@ -181,7 +181,8 @@ If weekly emails are required then cron must be edited to fire periodically djan
``` ```
> crontab -e > 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 SHELL=/bin/bash
*/30 * * * * source /var/www/scheduling-system/env/bin/activate && python /var/www/scheduling-system/smash/manage.py runcrons >> /var/log/django-cronjob.log 2>&1
``` ```
## Operations ## Operations
...@@ -200,4 +201,4 @@ example: ...@@ -200,4 +201,4 @@ example:
``` ```
./manage.py holidays 2017 2018 2019 ./manage.py holidays 2017 2018 2019
``` ```
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment