diff --git a/env/OPENSHIFT_CELERY_IMPORTS.erb b/env/OPENSHIFT_CELERY_IMPORTS.erb index 269bf09..1322dda 100644 --- a/env/OPENSHIFT_CELERY_IMPORTS.erb +++ b/env/OPENSHIFT_CELERY_IMPORTS.erb @@ -1 +1 @@ -openshift +celerytks diff --git a/template/.openshift/action_hooks/post_deploy b/template/.openshift/action_hooks/post_deploy index 3295d19..d38c5da 100755 --- a/template/.openshift/action_hooks/post_deploy +++ b/template/.openshift/action_hooks/post_deploy @@ -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 diff --git a/template/celerytks/__init__.py b/template/celerytks/__init__.py new file mode 100644 index 0000000..e69de29 diff --git a/template/celerytks/tasks.py b/template/celerytks/tasks.py new file mode 100644 index 0000000..9e4a85c --- /dev/null +++ b/template/celerytks/tasks.py @@ -0,0 +1,6 @@ +import celery +app = celery.Celery() + +@app.task +def addtest(x, y): + return x + y