diff --git a/apps/swh-indexer-storage/entrypoint.sh b/apps/swh-indexer-storage/entrypoint.sh index 0ed8e07a0866f981253081fe0425647f0c50fbe4..25faf706be853dcf6c7ad8c95d856ad34f5978b5 100644 --- a/apps/swh-indexer-storage/entrypoint.sh +++ b/apps/swh-indexer-storage/entrypoint.sh @@ -4,23 +4,23 @@ set -e case "$1" in "shell") - exec bash -i - ;; + exec bash -i + ;; "swh") shift echo "Running swh command $@" exec swh $@ ;; *) - echo Starting the swh-indexer-storage 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.core.api.gunicorn_config' \ - 'swh.indexer.storage.api.server:make_app_from_configfile()' - ;; + echo Starting the swh-indexer-storage 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.core.api.gunicorn_config' \ + 'swh.indexer.storage.api.server:make_app_from_configfile()' + ;; esac