summaryrefslogtreecommitdiffstats
path: root/cron/multi_award_badges_virtualenv
diff options
context:
space:
mode:
authorEvgeny Fadeev <evgeny.fadeev@gmail.com>2010-03-01 20:23:04 -0500
committerEvgeny Fadeev <evgeny.fadeev@gmail.com>2010-03-01 20:23:04 -0500
commit1b52d03f22f9ce224ee8355fe4489c326d19820c (patch)
treebbf1c5426dcb20ddf3891a0710feab51d3c194aa /cron/multi_award_badges_virtualenv
parentbac35fb088833fdc757c8dc9e90bcb53a0a8755c (diff)
downloadaskbot-1b52d03f22f9ce224ee8355fe4489c326d19820c.tar.gz
askbot-1b52d03f22f9ce224ee8355fe4489c326d19820c.tar.bz2
askbot-1b52d03f22f9ce224ee8355fe4489c326d19820c.zip
fixed the cron job files and added README for cron directory
Diffstat (limited to 'cron/multi_award_badges_virtualenv')
-rwxr-xr-xcron/multi_award_badges_virtualenv10
1 files changed, 10 insertions, 0 deletions
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