From d8c8f9166dfa34d340bf2c49a091398257fbce8e Mon Sep 17 00:00:00 2001 From: "Antoine R. Dumont (@ardumont)" <ardumont@softwareheritage.org> Date: Wed, 14 Aug 2024 13:24:04 +0200 Subject: [PATCH] graphql/entrypoint: Fix shell indent --- apps/swh-graphql/entrypoint.sh | 33 ++++++++++++++++----------------- 1 file changed, 16 insertions(+), 17 deletions(-) diff --git a/apps/swh-graphql/entrypoint.sh b/apps/swh-graphql/entrypoint.sh index 0c95fbc08..2c70de5f8 100644 --- a/apps/swh-graphql/entrypoint.sh +++ b/apps/swh-graphql/entrypoint.sh @@ -3,21 +3,20 @@ set -e case "$1" in -"shell") - exec bash -i - ;; -*) - echo Starting the swh-graphql API server - - exec gunicorn --bind 0.0.0.0:${PORT} \ - --log-level ${SWH_LOG_LEVEL:-INFO} \ - --threads ${THREADS} \ - --workers ${WORKERS} \ - --timeout ${TIMEOUT} \ - --statsd-host=${STATSD_HOST}:${STATSD_PORT} \ - --statsd-prefix=${STATSD_SERVICE_TYPE} \ - --config 'python:swh.graphql.gunicorn_config' \ - --worker-class 'uvicorn.workers.UvicornWorker' \ - 'swh.graphql.server:make_app_from_configfile()' - ;; + "shell") + exec bash -i + ;; + *) + echo Starting the swh-graphql API server + exec gunicorn --bind 0.0.0.0:${PORT} \ + --log-level ${SWH_LOG_LEVEL:-INFO} \ + --threads ${THREADS} \ + --workers ${WORKERS} \ + --timeout ${TIMEOUT} \ + --statsd-host=${STATSD_HOST}:${STATSD_PORT} \ + --statsd-prefix=${STATSD_SERVICE_TYPE} \ + --config 'python:swh.graphql.gunicorn_config' \ + --worker-class 'uvicorn.workers.UvicornWorker' \ + 'swh.graphql.server:make_app_from_configfile()' + ;; esac -- GitLab