diff options
author | Joseph Turian <turian@gmail.com> | 2010-02-21 18:59:00 -0500 |
---|---|---|
committer | Joseph Turian <turian@gmail.com> | 2010-02-21 18:59:00 -0500 |
commit | 463a7e9028af9450064f02a74e77c9cb5ca99fcb (patch) | |
tree | c256fd4a246d1753e23156d9772f34a27f675649 /cron | |
parent | f4d438e2f2cfe852198204ab6228b07917d2191b (diff) | |
download | askbot-463a7e9028af9450064f02a74e77c9cb5ca99fcb.tar.gz askbot-463a7e9028af9450064f02a74e77c9cb5ca99fcb.tar.bz2 askbot-463a7e9028af9450064f02a74e77c9cb5ca99fcb.zip |
Fixed instructions for using badges
Diffstat (limited to 'cron')
-rw-r--r-- | cron/multi_award_badges | 10 | ||||
-rw-r--r-- | cron/once_award_badges | 10 | ||||
-rw-r--r-- | cron/send_email_alerts | 14 |
3 files changed, 30 insertions, 4 deletions
diff --git a/cron/multi_award_badges b/cron/multi_award_badges new file mode 100644 index 00000000..df58155a --- /dev/null +++ b/cron/multi_award_badges @@ -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 multi_award_badges >> $PROJECT_ROOT/log/cron_badges.log 2>&1 diff --git a/cron/once_award_badges b/cron/once_award_badges new file mode 100644 index 00000000..12414969 --- /dev/null +++ b/cron/once_award_badges @@ -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 once_award_badges >> $PROJECT_ROOT/log/cron_badges.log 2>&1 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 |