1
0
forked from crony/UpFast
UpFast/gunicorn_start
2023-03-26 09:33:53 +02:00

23 lines
385 B
Bash
Executable File

#!/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=-
# --user=$USER \
# --group=$GROUP \