mirror of
https://github.com/alexbelgium/hassio-addons.git
synced 2026-01-10 09:51:02 +01:00
Fix code
https://github.com/alexbelgium/hassio-addons/issues/1985#issuecomment-3139468429
This commit is contained in:
@@ -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=$!
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user