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