diff options
Diffstat (limited to 'cron/send_email_alerts')
-rw-r--r-- | cron/send_email_alerts | 14 |
1 files changed, 10 insertions, 4 deletions
diff --git a/cron/send_email_alerts b/cron/send_email_alerts index 6358b599..6c9e154d 100644 --- a/cron/send_email_alerts +++ b/cron/send_email_alerts @@ -1,4 +1,10 @@ -PYTHONPATH=/path/to/dir/above/forum -export PYTHONPATH -APP_ROOT=$PYTHONPATH/nmr-forum2 -/path/to/python $APP_ROOT/manage.py send_email_alerts +#!/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 |