diff --git a/gunicorn.conf.py b/gunicorn.conf.py new file mode 100644 index 0000000..3c5c409 --- /dev/null +++ b/gunicorn.conf.py @@ -0,0 +1,6 @@ + +bind = "127.0.0.1:8082" +workers = 2 +preload = True +daemon = False +log_level = 'info' diff --git a/requirements.txt b/requirements.txt index 93bef1f..caf8d31 100644 --- a/requirements.txt +++ b/requirements.txt @@ -4,3 +4,4 @@ django-debug-toolbar requests beautifulsoup4 redis +gunicorn diff --git a/supervisor.conf b/supervisor.conf new file mode 100644 index 0000000..689081a --- /dev/null +++ b/supervisor.conf @@ -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