openreplay/ee/api/entrypoint.sh
Kraiem Taha Yassine 6fb7d875cc
v1.13.0 chalice fix
fix(chalice): allow FastAPI to handel async automatically (#1383)
fix(chalice): EE support of multiworkers
refactor(chalice): cleaned SSO
2023-06-27 17:47:30 +01:00

7 lines
No EOL
261 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