From 31dd8e4b4651687e3fca58eaa23335dbf17257dc Mon Sep 17 00:00:00 2001 From: mvdbeek Date: Tue, 22 Feb 2022 17:54:26 +0100 Subject: [PATCH] Fix tool_shed entrypoint and default port --- scripts/common_startup_functions.sh | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/scripts/common_startup_functions.sh b/scripts/common_startup_functions.sh index d7b57308cad..d768b15e30b 100644 --- a/scripts/common_startup_functions.sh +++ b/scripts/common_startup_functions.sh @@ -187,9 +187,14 @@ find_server() { fi server_args="$server_args $uwsgi_args" elif [ "$APP_WEBSERVER" = "gunicorn" ]; then - export GUNICORN_CMD_ARGS="${GUNICORN_CMD_ARGS:-\"--bind=localhost:8080\"}" run_server="gunicorn" - server_args="'galaxy.webapps.${server_app}.fast_factory:factory()' --pythonpath lib -k ${gunicorn_worker:-$default_gunicorn_worker} $gunicorn_args" + if [ "$server_app" = "tool_shed" ]; then + server_args="'${server_app}.webapp.fast_factory:factory()' --pythonpath lib -k ${gunicorn_worker:-$default_gunicorn_worker} $gunicorn_args" + export GUNICORN_CMD_ARGS="${GUNICORN_CMD_ARGS:-\"--bind=localhost:9009\"}" + else + export GUNICORN_CMD_ARGS="${GUNICORN_CMD_ARGS:-\"--bind=localhost:8080\"}" + server_args="'galaxy.webapps.${server_app}.fast_factory:factory()' --pythonpath lib -k ${gunicorn_worker:-$default_gunicorn_worker} $gunicorn_args" + fi if [ "$add_pid_arg" -eq 1 ]; then server_args="$server_args --pid \"$PID_FILE\"" fi