https://github.com/galaxyproject/galaxy
Tip revision: 89d001abb77ee6b92904760d5cf896a95eb124c9 authored by John Chilton on 04 July 2020, 14:13:09 UTC
Version 20.5.0 of web-stack (tag galaxy-web-stack-20.5.0).
Version 20.5.0 of web-stack (tag galaxy-web-stack-20.5.0).
Tip revision: 89d001a
run_reports.sh
#!/bin/sh
# Usage: ./run_reports.sh [--sync-config] <start|stop>
#
#
# Description: This script can be used to start or stop the galaxy
# reports web application. Passing in --sync-config as the first
# argument to this will cause Galaxy's database and path parameters
# from galaxy.ini to be copied over into reports.ini.
cd "$(dirname "$0")"
GALAXY_REPORTS_PID=${GALAXY_REPORTS_PID:-reports_webapp.pid}
GALAXY_REPORTS_LOG=${GALAXY_REPORTS_LOG:-reports_webapp.log}
PID_FILE=$GALAXY_REPORTS_PID
LOG_FILE=$GALAXY_REPORTS_LOG
. ./scripts/common_startup_functions.sh
if [ "$1" = "--sync-config" ];
then
python ./scripts/sync_reports_config.py
shift
fi
parse_common_args $@
run_common_start_up
setup_python
if [ -z "$GALAXY_REPORTS_CONFIG" ]; then
GALAXY_REPORTS_CONFIG=$(PYTHONPATH=lib python -c "from __future__ import print_function; from galaxy.util.properties import find_config_file; print(find_config_file(['reports', 'reports_wsgi']) or '')")
export GALAXY_REPORTS_CONFIG
fi
if [ -n "$GALAXY_REPORTS_CONFIG_DIR" ]; then
python ./scripts/build_universe_config.py "$GALAXY_REPORTS_CONFIG_DIR" "$GALAXY_REPORTS_CONFIG"
fi
find_server ${GALAXY_REPORTS_CONFIG:-none} reports
echo "Executing: $run_server $server_args"
eval $run_server $server_args