Skip to content

Commit

Permalink
Add back apparently necessary blank line in Jinja2 template for gunic…
Browse files Browse the repository at this point in the history
…orn supervisor config file
  • Loading branch information
dpoirier committed Aug 6, 2018
1 parent e0e4942 commit fc6c41d
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions templates/gunicorn.conf
Original file line number Diff line number Diff line change
@@ -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
Expand Down

0 comments on commit fc6c41d

Please sign in to comment.