forked from crony/UpFast
Remove gunicorn startup script, not needed
This commit is contained in:
parent
7c0297c647
commit
3c69c7844b
@ -1,23 +0,0 @@
|
|||||||
#!/bin/bash
|
|
||||||
|
|
||||||
NAME=upfast
|
|
||||||
# USER=upfast
|
|
||||||
# GROUP=upfast
|
|
||||||
WORKERS=3
|
|
||||||
WORKER_CLASS=uvicorn.workers.UvicornWorker
|
|
||||||
VENV=venv/bin/activate
|
|
||||||
BIND=unix:/tmp/upfast.sock
|
|
||||||
LOG_LEVEL=error
|
|
||||||
|
|
||||||
source $VENV
|
|
||||||
|
|
||||||
exec gunicorn main:app \
|
|
||||||
--name $NAME \
|
|
||||||
--workers $WORKERS \
|
|
||||||
--worker-class $WORKER_CLASS \
|
|
||||||
--bind=$BIND \
|
|
||||||
--log-level=$LOG_LEVEL \
|
|
||||||
--log-file=- \
|
|
||||||
--forwarded-allow-ips='*'
|
|
||||||
# --user=$USER \
|
|
||||||
# --group=$GROUP \
|
|
Loading…
Reference in New Issue
Block a user