summaryrefslogtreecommitdiffstats
path: root/cron
diff options
context:
space:
mode:
authorEvgeny Fadeev <evgeny.fadeev@gmail.com>2010-02-22 23:02:11 -0500
committerEvgeny Fadeev <evgeny.fadeev@gmail.com>2010-02-22 23:02:11 -0500
commitd18148e7fe39fed1e5f46f4d65af83229ed009bb (patch)
treef629303c98761ad5ea1830abfbe8af7e7eda49bb /cron
parent2390d0191c52ae585cda3f1ae6f884cc58639025 (diff)
parent7b447646ba1867c67edaa1c2df0074f0d6d05b2c (diff)
downloadaskbot-d18148e7fe39fed1e5f46f4d65af83229ed009bb.tar.gz
askbot-d18148e7fe39fed1e5f46f4d65af83229ed009bb.tar.bz2
askbot-d18148e7fe39fed1e5f46f4d65af83229ed009bb.zip
merged joseph's branch
Diffstat (limited to 'cron')
-rwxr-xr-xcron/multi_award_badges10
-rwxr-xr-xcron/once_award_badges10
-rw-r--r--cron/send_email_alerts_virtualenv10
3 files changed, 30 insertions, 0 deletions
diff --git a/cron/multi_award_badges b/cron/multi_award_badges
new file mode 100755
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 100755
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_virtualenv b/cron/send_email_alerts_virtualenv
new file mode 100644
index 00000000..6c9e154d
--- /dev/null
+++ b/cron/send_email_alerts_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 send_email_alerts >> $PROJECT_ROOT/log/cron_mail.log 2>&1