diff options
Diffstat (limited to 'cron/once_award_badges')
-rwxr-xr-x | cron/once_award_badges | 18 |
1 files changed, 11 insertions, 7 deletions
diff --git a/cron/once_award_badges b/cron/once_award_badges index 12414969..43ee2249 100755 --- a/cron/once_award_badges +++ b/cron/once_award_badges @@ -1,10 +1,14 @@ #!/bin/sh +PYTHONPATH=/path/to/dir_above_osqa_site +export PYTHONPATH +PROJECT_ROOT=$PYTHONPATH/osqa_site +python manage.py once_award_badges >> $PROJECT_ROOT/log/cron_badges.log 2>&1 -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 +#!/bin/sh +PYTHONPATH=/usr/local/sites/osqa_production +export PYTHONPATH +PROJECT_ROOT=$PYTHONPATH/robofaqs +python $PROJECT_ROOT/manage.py once_award_badges >> $PROJECT_ROOT/log/cron_badges.log 2>&1 +python $PROJECT_ROOT/manage.py multi_award_badges >> $PROJECT_ROOT/log/cron_badges.log 2>&1 +python $PROJECT_ROOT/manage.py send_email_alerts >> $PROJECT_ROOT/log/cron_email.log 2>&1
\ No newline at end of file |