From 1b52d03f22f9ce224ee8355fe4489c326d19820c Mon Sep 17 00:00:00 2001 From: Evgeny Fadeev Date: Mon, 1 Mar 2010 20:23:04 -0500 Subject: fixed the cron job files and added README for cron directory --- cron/multi_award_badges_virtualenv | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100755 cron/multi_award_badges_virtualenv (limited to 'cron/multi_award_badges_virtualenv') diff --git a/cron/multi_award_badges_virtualenv b/cron/multi_award_badges_virtualenv new file mode 100755 index 00000000..df58155a --- /dev/null +++ b/cron/multi_award_badges_virtualenv @@ -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 -- cgit v1.2.3-1-g7c22