refact and change the app name

This commit is contained in:
zzpwelkin
2013-12-27 11:30:51 +08:00
parent ac0259276d
commit 6fe90ba252
4 changed files with 8 additions and 2 deletions
+1 -1
View File
@@ -1 +1 @@
openshift
celerytks
+1 -1
View File
@@ -1,4 +1,4 @@
#!/bin/bash
source $OPENSHIFT_HOMEDIR/python/virtenv/bin/activate
export PYTHONPATH=`echo $OPENSHIFT_REPO_DIR`wsgi:$PYTHONPATH
export PYTHONPATH=`echo $OPENSHIFT_REPO_DIR`:$PYTHONPATH
View File
+6
View File
@@ -0,0 +1,6 @@
import celery
app = celery.Celery()
@app.task
def addtest(x, y):
return x + y