openreplay/ee/api/entrypoint.sh
Kraiem Taha Yassine 1b8204428e
Api v1.15.0 (#1583)
* fix(chalice): changed server level logging
2023-10-27 15:08:25 +02:00

8 lines
No EOL
316 B
Bash
Executable file

#!/bin/sh
sh env_vars.sh
source /tmp/.env.override
#uvicorn app:app --host 0.0.0.0 --port $LISTEN_PORT --proxy-headers
NB_WORKERS="${NB_WORKERS:=4}"
gunicorn app:app --workers $NB_WORKERS --worker-class uvicorn.workers.UvicornWorker \
--bind 0.0.0.0:$LISTEN_PORT --log-level ${S_LOGLEVEL:-warning}