From 681247e4b7ea57ff393330923f4164e227c14d38 Mon Sep 17 00:00:00 2001 From: stepmr Date: Fri, 11 Dec 2015 23:10:08 -0800 Subject: [PATCH] Add celery worker to Procfile --- {{cookiecutter.repo_name}}/Procfile | 3 +++ 1 file changed, 3 insertions(+) diff --git a/{{cookiecutter.repo_name}}/Procfile b/{{cookiecutter.repo_name}}/Procfile index c00f4235..1214b012 100644 --- a/{{cookiecutter.repo_name}}/Procfile +++ b/{{cookiecutter.repo_name}}/Procfile @@ -1 +1,4 @@ web: gunicorn config.wsgi:application +{% if cookiecutter.use_celery == "y" -%} +worker: {% if cookiecutter.use_newrelic == "y" %}newrelic-admin run-program {% endif %}celery worker --app=stairmaster.taskapp --loglevel=info +{%- endif %}