Added confs for gunicorn and supervisor.

This commit is contained in:
A. Svensson 2015-02-25 17:30:48 +01:00
parent b6a7f28429
commit 9549d6b0a9
3 changed files with 14 additions and 0 deletions

6
gunicorn.conf.py Normal file
View File

@ -0,0 +1,6 @@
bind = "127.0.0.1:8082"
workers = 2
preload = True
daemon = False
log_level = 'info'

View File

@ -4,3 +4,4 @@ django-debug-toolbar
requests
beautifulsoup4
redis
gunicorn

7
supervisor.conf Normal file
View File

@ -0,0 +1,7 @@
[program:ss13_hub]
directory=/opt/ss13_hub/ss13_hub/src
command=/opt/ss13_hub/venv/bin/gunicorn src.wsgi:application -c /opt/ss13_hub/ss13_hub/gunicorn.conf.py
user=ss13_hub
autostart=true
autorestart=unexpected
redirect_stderr=true