Alexandre
2025-07-31 13:26:23 +02:00
committed by GitHub
parent 495bd378d3
commit c271de5470

View File

@@ -58,7 +58,7 @@ REDIS_PID=$!
# Starting App # # Starting App #
############### ###############
echo "Starting Gramps Web App..." echo "Starting Gramps Web App..."
GUNICORN_NUM_WORKERS="(bashio::config "GUNICORN_NUM_WORKERS")" GUNICORN_NUM_WORKERS="$(bashio::config "GUNICORN_NUM_WORKERS")"
/docker-entrypoint.sh gunicorn -w "${GUNICORN_NUM_WORKERS:-8}" -b 0.0.0.0:5000 gramps_webapi.wsgi:app --timeout "${GUNICORN_TIMEOUT:-120}" --limit-request-line 8190 & /docker-entrypoint.sh gunicorn -w "${GUNICORN_NUM_WORKERS:-8}" -b 0.0.0.0:5000 gramps_webapi.wsgi:app --timeout "${GUNICORN_TIMEOUT:-120}" --limit-request-line 8190 &
APP_PID=$! APP_PID=$!
@@ -67,7 +67,7 @@ APP_PID=$!
################## ##################
bashio::net.wait_for 5000 localhost 900 bashio::net.wait_for 5000 localhost 900
echo "Starting Celery..." echo "Starting Celery..."
CELERY_NUM_WORKERS="(bashio::config "CELERY_NUM_WORKERS")" CELERY_NUM_WORKERS="$(bashio::config "CELERY_NUM_WORKERS")"
celery -A gramps_webapi worker --loglevel=INFO --concurrency="${CELERY_NUM_WORKERS:-2}" & celery -A gramps_webapi worker --loglevel=INFO --concurrency="${CELERY_NUM_WORKERS:-2}" &
CELERY_PID=$! CELERY_PID=$!