From fc6c41d81b43d87b1837e8ed50df39d7de4c5ace Mon Sep 17 00:00:00 2001 From: dpoirier Date: Mon, 6 Aug 2018 08:28:14 -0400 Subject: [PATCH] Add back apparently necessary blank line in Jinja2 template for gunicorn supervisor config file --- templates/gunicorn.conf | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/templates/gunicorn.conf b/templates/gunicorn.conf index d956fb2..b63495e 100644 --- a/templates/gunicorn.conf +++ b/templates/gunicorn.conf @@ -1,5 +1,9 @@ [program:{{ project_name }}-server] command={{ django_dir }}/dotenv.sh {% if use_newrelic %}{{ venv_dir }}/bin/newrelic-admin run-program {% endif %}{{ venv_dir }}/bin/gunicorn {{ wsgi_module }}:application --log-syslog --bind=0.0.0.0:{{ project_port }} --workers={{ gunicorn_num_workers }} {% if gunicorn_num_threads is defined %}--threads={{ gunicorn_num_threads }}{% endif %} + +; The blank line before this is required. Do not remove it please. +; Otherwise the command= and user= lines get joined into one. +; (Maybe due to the previous line ending with Jinja2 ``endif``?) user={{ project_user }} directory={{ django_dir }} autostart=true