]> git.openstreetmap.org Git - osqa.git/blobdiff - cron/send_email_alerts_virtualenv
initial import
[osqa.git] / cron / send_email_alerts_virtualenv
diff --git a/cron/send_email_alerts_virtualenv b/cron/send_email_alerts_virtualenv
new file mode 100644 (file)
index 0000000..6c9e154
--- /dev/null
@@ -0,0 +1,10 @@
+#!/bin/sh
+
+WORKON_HOME=~/envs/osqa
+PROJECT_ROOT=~/webapps/osqa_server/projects/osqa/
+
+# activate virtual environment
+. $WORKON_HOME/bin/activate
+
+cd $PROJECT_ROOT
+python manage.py send_email_alerts >> $PROJECT_ROOT/log/cron_mail.log 2>&1