Add dinit supervisor files
Signed-off-by: Shin'ya Minazuki <shinyoukai@laidback.moe>
This commit is contained in:
parent
559f43b02a
commit
9f2e4fa52c
4 changed files with 22 additions and 0 deletions
4
deploy/dinit/README.md
Normal file
4
deploy/dinit/README.md
Normal file
|
|
@ -0,0 +1,4 @@
|
|||
# dinit
|
||||
Supervisor configuration files for `dinit`, it assumes FunQuail will be installed in `/srv/funquail` with the virtual environment in the `venv` subdirectory.
|
||||
|
||||
Feel free to change them however you see fit.
|
||||
6
deploy/dinit/funquail-beat
Normal file
6
deploy/dinit/funquail-beat
Normal file
|
|
@ -0,0 +1,6 @@
|
|||
type = process
|
||||
working-dir = /srv/funquail/api
|
||||
env-file = /srv/funquail/config/.env
|
||||
command = /srv/funquail/venv/bin/python3 /srv/funquail/venv/bin/celery --app funquail_api.taskapp beat --loglevel INFO
|
||||
logfile = /var/log/funquail/beat.log
|
||||
run-as = funquail
|
||||
6
deploy/dinit/funquail-server
Normal file
6
deploy/dinit/funquail-server
Normal file
|
|
@ -0,0 +1,6 @@
|
|||
type = process
|
||||
working-dir = /srv/funquail/api
|
||||
env-file = /srv/funquail/config/.env
|
||||
command = /srv/funquail/venv/bin/gunicorn config.asgi:application --workers 4 --worker-class uvicorn.workers.UvicornWorker --bind 127.0.0.1:5000
|
||||
logfile = /var/log/funquail/server.log
|
||||
run-as = funquail
|
||||
6
deploy/dinit/funquail-worker
Normal file
6
deploy/dinit/funquail-worker
Normal file
|
|
@ -0,0 +1,6 @@
|
|||
type = process
|
||||
working-dir = /srv/funquail/api
|
||||
env-file = /srv/funquail/config/.env
|
||||
command = /srv/funquail/venv/bin/celery --app funquail_api.taskapp worker --loglevel INFO
|
||||
logfile = /var/log/funquail/worker.log
|
||||
run-as = funquail
|
||||
Loading…
Add table
Add a link
Reference in a new issue