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