summaryrefslogtreecommitdiffstats
path: root/cron/once_award_badges_virtualenv
diff options
context:
space:
mode:
Diffstat (limited to 'cron/once_award_badges_virtualenv')
-rwxr-xr-xcron/once_award_badges_virtualenv10
1 files changed, 10 insertions, 0 deletions
diff --git a/cron/once_award_badges_virtualenv b/cron/once_award_badges_virtualenv
new file mode 100755
index 00000000..12414969
--- /dev/null
+++ b/cron/once_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 once_award_badges >> $PROJECT_ROOT/log/cron_badges.log 2>&1