Skip to content

Commit

Permalink
Redirect clean_up_bq_test_data logs
Browse files Browse the repository at this point in the history
This will stop us getting an email every time it runs overnight
  • Loading branch information
inglesp committed Jun 13, 2018
1 parent 4e4499b commit 7d6e59a
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion deploy/clean_up_bq_test_data.sh
@@ -1,4 +1,7 @@
#!/bin/bash
export DJANGO_SETTINGS_MODULE=openprescribing.settings.test
LOGFILE=$(mktemp -t clean_up_bq_test_data-$(date +%Y-%m-%d)-XXXX.log)

. /webapps/openprescribing/.venv/bin/activate
python /webapps/openprescribing/openprescribing/manage.py clean_up_bq_test_data

python /webapps/openprescribing/openprescribing/manage.py clean_up_bq_test_data >$LOGFILE 2>&1

0 comments on commit 7d6e59a

Please sign in to comment.