From dd1377d69031e279614777b33e5c9252e32d7ed7 Mon Sep 17 00:00:00 2001 From: Nick Sergeant Date: Fri, 31 Oct 2014 16:23:42 -0400 Subject: [PATCH] More Vagrant stuff. --- gunicorn.conf.py | 2 +- salt/application/snipt.supervisor.conf | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/gunicorn.conf.py b/gunicorn.conf.py index f48c9fb..a9f0836 100644 --- a/gunicorn.conf.py +++ b/gunicorn.conf.py @@ -1,4 +1,4 @@ -bind = "0.0.0.0:8000" +bind = "127.0.0.1:8000" daemon = False # Whether work in the background debug = False # Some extra logging logfile = ".gunicorn.log" # Name of the log file diff --git a/salt/application/snipt.supervisor.conf b/salt/application/snipt.supervisor.conf index 1a63a53..303b29d 100644 --- a/salt/application/snipt.supervisor.conf +++ b/salt/application/snipt.supervisor.conf @@ -4,4 +4,6 @@ user={{ pillar.deploy_user }} command={% if pillar.env_name != 'vagrant' %}/var/www/.virtualenvs/snipt/bin/python manage.py run_gunicorn -c /var/www/snipt/gunicorn.conf.py{% else %}/var/www/.virtualenvs/snipt/bin/python manage.py runserver{% endif %} autostart=true autorestart=true +stopsignal=KILL +killasgroup=true environment=NODE_ENV=production