mirror of
https://github.com/wassname/openshift-celery-cartridge.git
synced 2026-09-09 11:27:59 +08:00
refact and change the app name
This commit is contained in:
Vendored
+1
-1
@@ -1 +1 @@
|
||||
openshift
|
||||
celerytks
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -0,0 +1,6 @@
|
||||
import celery
|
||||
app = celery.Celery()
|
||||
|
||||
@app.task
|
||||
def addtest(x, y):
|
||||
return x + y
|
||||
Reference in New Issue
Block a user