Compare commits
4 Commits
main
...
deploy/awi
Author | SHA1 | Date | |
---|---|---|---|
91947cd3f1 | |||
d29cf33e07 | |||
5032e16f6c | |||
90f9282247 |
1
description
Normal file
1
description
Normal file
|
@ -0,0 +1 @@
|
|||
Track fear and phase in multiplayer games of the board game Spirit Island.
|
16
fear-tracker-gunicorn.service
Normal file
16
fear-tracker-gunicorn.service
Normal file
|
@ -0,0 +1,16 @@
|
|||
# Based on https://docs.gunicorn.org/en/stable/deploy.html#systemd
|
||||
|
||||
[Service]
|
||||
ExecStart=/usr/bin/gunicorn3 fear_tracker_site.asgi:application --config=/home/anyoneeb/sites/apps/fear-tracker/gunicorn.conf.py
|
||||
ExecReload=/bin/kill -s HUP $MAINPID
|
||||
Restart=always
|
||||
StandardOutput=syslog
|
||||
StandardError=syslog
|
||||
SyslogIdentifier=fear-tracker
|
||||
User=fear-tracker
|
||||
Group=fear-tracker
|
||||
KillMode=mixed
|
||||
PrivateTmp=true
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
11
fear-tracker-uwsgi.service
Normal file
11
fear-tracker-uwsgi.service
Normal file
|
@ -0,0 +1,11 @@
|
|||
[Service]
|
||||
ExecStart=/usr/bin/uwsgi --ini /home/anyoneeb/sites/apps/fear-tracker/uwsgi.ini
|
||||
Restart=always
|
||||
StandardOutput=syslog
|
||||
StandardError=syslog
|
||||
SyslogIdentifier=fear-tracker
|
||||
User=fear-tracker
|
||||
Group=fear-tracker
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
14
gunicorn.conf.py
Normal file
14
gunicorn.conf.py
Normal file
|
@ -0,0 +1,14 @@
|
|||
import multiprocessing
|
||||
|
||||
bind = "127.0.0.1:8043"
|
||||
worker_class = "uvicorn.workers.UvicornWorker"
|
||||
workers = multiprocessing.cpu_count() * 2 + 1
|
||||
chdir = "/home/anyoneeb/sites/apps/fear-tracker"
|
||||
raw_env = "DJANGO_SETTINGS_MODULE=fear_tracker_site.local_settings"
|
||||
proc_name = "gnuicorn-fear-tracker"
|
||||
pidfile = "/tmp/gnuicorn-fear-tracker.pid"
|
||||
user = "fear-tracker"
|
||||
group = "fear-tracker"
|
||||
max_requests=5000
|
||||
max_requests_jitter=100
|
||||
preload_app=True
|
14
uwsgi.ini
Normal file
14
uwsgi.ini
Normal file
|
@ -0,0 +1,14 @@
|
|||
[uwsgi]
|
||||
socket=127.0.0.1:8043
|
||||
mount = /fear-tracker=fear_tracker_site.wsgi:application
|
||||
manage-script-name = true
|
||||
chdir=/home/anyoneeb/sites/apps/fear-tracker
|
||||
plugin=python3
|
||||
module=fear_tracker_site.wsgi:application
|
||||
env=DJANGO_SETTINGS_MODULE=fear_tracker_site.local_settings
|
||||
master=True
|
||||
pidfile=/tmp/fear-tracker-master.pid
|
||||
vacuum=True
|
||||
max-requests=5000
|
||||
uid=fear-tracker
|
||||
gid=fear-tracker
|
Loading…
Reference in New Issue
Block a user