From cd9149c296a00e07b437f2aef5a52b447976fca7 Mon Sep 17 00:00:00 2001 From: Nick Sergeant Date: Fri, 24 Jul 2015 19:16:10 -0400 Subject: [PATCH] Upgrade gunicorn run. --- Procfile | 2 +- salt/application/snipt.supervisor.conf | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Procfile b/Procfile index b94b07e..0d84653 100644 --- a/Procfile +++ b/Procfile @@ -1 +1 @@ -web: gunicorn wsgi --log-file - +web: gunicorn wsgi:application --log-file - diff --git a/salt/application/snipt.supervisor.conf b/salt/application/snipt.supervisor.conf index 75713e4..22c71c9 100644 --- a/salt/application/snipt.supervisor.conf +++ b/salt/application/snipt.supervisor.conf @@ -1,7 +1,7 @@ [program:snipt] directory=/var/www/snipt user={{ pillar.deploy_user }} -command={% if pillar.env_name != 'vagrant' %}/var/www/.virtualenvs/snipt/bin/python /var/www/snipt/manage.py run_gunicorn -c /var/www/snipt/gunicorn.conf.py{% else %}/var/www/.virtualenvs/snipt/bin/python /var/www/snipt/manage.py runserver{% endif %} +command={% if pillar.env_name != 'vagrant' %}/var/www/.virtualenvs/snipt/bin/gunicorn wsgi:application{% else %}/var/www/.virtualenvs/snipt/bin/python /var/www/snipt/manage.py runserver{% endif %} autostart=true autorestart=true stopasgroup=true