aircox/scripts/cron
Thomas Kairos 0e183099ed #88 #89 : use pytest + reorganise settings (#92)
- !88 pytest on existing tests
- !89 reorganise settings (! see notes for deployment)

Co-authored-by: bkfox <thomas bkfox net>
Reviewed-on: #92
2023-03-28 14:40:49 +02:00

15 lines
429 B
Bash
Executable File

#! /bin/sh
export DJANGO_SETTINGS_MODULE=instance.settings.prod
# aircox daily tasks:
# - diffusions monitoring for the current month
cd /srv/www/aircox/
scripts/launch_in_venv ./manage.py diffusions --update --clean
# - diffusions monitoring for the next month
scripts/launch_in_venv ./manage.py diffusions --update --next-month
cd -
# - archiver monitoring for the next month
scripts/launch_in_venv ./manage.py archiver
cd -