Added confs for gunicorn and supervisor.
This commit is contained in:
parent
b6a7f28429
commit
9549d6b0a9
6
gunicorn.conf.py
Normal file
6
gunicorn.conf.py
Normal file
@ -0,0 +1,6 @@
|
||||
|
||||
bind = "127.0.0.1:8082"
|
||||
workers = 2
|
||||
preload = True
|
||||
daemon = False
|
||||
log_level = 'info'
|
||||
@ -4,3 +4,4 @@ django-debug-toolbar
|
||||
requests
|
||||
beautifulsoup4
|
||||
redis
|
||||
gunicorn
|
||||
|
||||
7
supervisor.conf
Normal file
7
supervisor.conf
Normal 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
|
||||
Loading…
x
Reference in New Issue
Block a user