Skip to content
Snippets Groups Projects
Verified Commit 3fd3f2fc authored by Antoine R. Dumont's avatar Antoine R. Dumont
Browse files

web/entrypoint: Fix shell indent

parent a2e73d0a
No related branches found
No related tags found
No related merge requests found
...@@ -10,7 +10,7 @@ case "$1" in ...@@ -10,7 +10,7 @@ case "$1" in
else else
"$@" "$@"
fi fi
;; ;;
"refresh") "refresh")
echo "Start periodic save code now refresh statuses routine (in background)" echo "Start periodic save code now refresh statuses routine (in background)"
exec sh -c 'date && django-admin refresh_savecodenow_statuses \ exec sh -c 'date && django-admin refresh_savecodenow_statuses \
...@@ -22,18 +22,18 @@ case "$1" in ...@@ -22,18 +22,18 @@ case "$1" in
date date
exec sh -c "django-admin sync_mailmaps --perform '$@'" exec sh -c "django-admin sync_mailmaps --perform '$@'"
;; ;;
*) *)
echo "Starting the swh-web server" echo "Starting the swh-web server"
# run gunicorn workers as in production otherwise # run gunicorn workers as in production otherwise
exec gunicorn --bind 0.0.0.0:${PORT} \ exec gunicorn --bind 0.0.0.0:${PORT} \
--log-level ${SWH_LOG_LEVEL:-INFO} \ --log-level ${SWH_LOG_LEVEL:-INFO} \
--threads ${THREADS} \ --threads ${THREADS} \
--workers ${WORKERS} \ --workers ${WORKERS} \
--timeout ${TIMEOUT} \ --timeout ${TIMEOUT} \
--statsd-host=${STATSD_HOST}:${STATSD_PORT} \ --statsd-host=${STATSD_HOST}:${STATSD_PORT} \
--statsd-prefix=${STATSD_SERVICE_TYPE} \ --statsd-prefix=${STATSD_SERVICE_TYPE} \
--access-logfile '-' \ --access-logfile '-' \
--env DJANGO_SETTINGS_MODULE=${DJANGO_SETTINGS_MODULE} \ --env DJANGO_SETTINGS_MODULE=${DJANGO_SETTINGS_MODULE} \
--config 'python:swh.web.gunicorn_config' \ --config 'python:swh.web.gunicorn_config' \
'django.core.wsgi:get_wsgi_application()' 'django.core.wsgi:get_wsgi_application()'
esac esac
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment