-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #213 from UW-GAC/main
Deploy cron audit support
- Loading branch information
Showing
4 changed files
with
31 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
export DJANGO_SITE_DIR=/var/www/django/gregor_apps/ | ||
export DJANGO_SITE_USER=gregorweb | ||
export DJANGO_SETTINGS_MODULE=config.settings.apps | ||
export DJANGO_WSGI_FILE=config/gregor_apps_wsgi.py | ||
export GAC_ENV=gregor_apps | ||
cd $DJANGO_SITE_DIR | ||
. venv/bin/activate |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
# Sets environment variables, changes directory and activates venv | ||
# for gregor apps dev env | ||
# Used by crontab, validate any changes | ||
|
||
export DJANGO_SITE_DIR=/var/www/django/gregor_apps_dev/ | ||
export DJANGO_SITE_USER=gregorweb | ||
export DJANGO_SETTINGS_MODULE=config.settings.apps_dev | ||
export DJANGO_WSGI_FILE=config/apps_dev_wsgi.py | ||
export GAC_ENV=gregor_apps_dev | ||
cd $DJANGO_SITE_DIR | ||
. venv/bin/activate |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
# GREGOR_APPS crontab | ||
# nightly except sunday at 00:00 | ||
0 0 * * MON-SAT . /var/www/django/gregor_apps/gregor-apps-activate.sh; python manage.py run_anvil_audit --email [email protected] --errors-only >> cron.log 2>&1 | ||
|
||
# sunday night at 00:00 | ||
0 0 * * SUN . /var/www/django/gregor_apps/gregor-apps-activate.sh; python manage.py run_anvil_audit --email [email protected] >> cron.log 2>&1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
# GREGOR_APPS_DEV crontab - disabled by default | ||
# can be enabled for testing. | ||
# nightly except sunday at 00:00 | ||
# 0 0 * * MON-SAT . /var/www/django/gregor_apps/gregor-apps-dev-activate.sh; python manage.py run_anvil_audit --email [email protected] --errors-only >> cron.log 2>&1 | ||
|
||
# sunday night at 00:00 | ||
# 0 0 * * SUN . /var/www/django/gregor_apps/gregor-apps-dev-activate.sh; python manage.py run_anvil_audit --email [email protected] >> cron.log 2>&1 |