diff --git a/scripts/start.sh b/scripts/start.sh index 398a855ced..a963ddc7a3 100755 --- a/scripts/start.sh +++ b/scripts/start.sh @@ -12,30 +12,30 @@ min() { workers=$(min 30 ${ANTARES_NB_WORKERS:-$((2*$(nproc) + 1))}) # default (2*nproc + 1) and max is 30 # Check for --no-gunicorn or --multiple-ports argument -use_gunicorn=true +use_uvicorn=false for arg in "$@" do if [[ $arg == "--no-gunicorn" || $arg == "--multiple-ports" ]]; then - use_gunicorn=false + use_uvicorn=true break fi done if [ -z "$1" ] ; then sh $CUR_DIR/pre-start.sh - if [ "$use_gunicorn" = true ]; then - gunicorn --config $BASE_DIR/conf/gunicorn.py --worker-class=uvicorn.workers.UvicornWorker antarest.wsgi:app - else - pids=() # Initialize empty array to store background process IDs - for ((i=0; i