Use gunicorn_procname in supervisor.conf.j2
authorLorin Hochstein <lhochstein@netflix.com>
Tue, 3 Jan 2017 05:51:37 +0000 (21:51 -0800)
committerLorin Hochstein <lhochstein@netflix.com>
Tue, 3 Jan 2017 05:51:37 +0000 (21:51 -0800)
ch06/playbooks/templates/supervisor.conf.j2

index 7a7a4bb..bb52b7d 100644 (file)
@@ -1,4 +1,4 @@
-[program:gunicorn_{{ proj_name }}]
+[program:{{ gunicorn_procname }}]
 command={{ venv_path }}/bin/gunicorn -c gunicorn.conf.py -p gunicorn.pid {{ proj_app }}.wsgi:application
 directory={{ proj_path }}
 user={{ user }}