25 lines
439 B
Bash
25 lines
439 B
Bash
|
#!/bin/sh
|
||
|
|
||
|
NAME=ismijnipverweg
|
||
|
DIR=/opt/apps/ismijnipverweg/app
|
||
|
USER=www
|
||
|
GROUP=nobody
|
||
|
WORKERS=3
|
||
|
WORKER_CLASS=uvicorn.workers.UvicornWorker
|
||
|
#VENV=$DIR/.venv/bin/activate
|
||
|
BIND=unix:$DIR/../run/gunicorn.sock
|
||
|
LOG_LEVEL=debug
|
||
|
|
||
|
cd $DIR
|
||
|
# source $VENV
|
||
|
|
||
|
exec gunicorn main:app \
|
||
|
--name $NAME \
|
||
|
--workers $WORKERS \
|
||
|
--worker-class $WORKER_CLASS \
|
||
|
--user=$USER \
|
||
|
--group=$GROUP \
|
||
|
--bind=$BIND \
|
||
|
--log-level=$LOG_LEVEL \
|
||
|
--log-file=-
|