mirror of
https://github.com/galaxyproject/galaxy.git
synced 2026-09-24 16:30:27 +08:00
Added flag (--sync-config) to run_reports.sh script that will cause it to synchronize the database connection and file path properties in reports_wsgi.ini with those in universe_wsgi.ini prior to starting paster app. Allow specification of reports configuration directory mirroring similar extensions previously accepted for universe config and run.sh Added usage documentation to run_reports.sh. Added extension points to tweak pid and log location for reports application via environment variables.
30 lines
914 B
Bash
Executable File
30 lines
914 B
Bash
Executable File
#!/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 universe_wsgi.ini to be copied over into reports_wsgi.ini.
|
|
|
|
cd `dirname $0`
|
|
|
|
GALAXY_REPORTS_CONFIG=${GALAXY_REPORTS_CONFIG:-reports_wsgi.ini}
|
|
GALAXY_REPORTS_PID=${GALAXY_REPORTS_PID:-reports_webapp.pid}
|
|
GALAXY_REPORTS_LOG=${GALAXY_REPORTS_LOG:-reports_webapp.log}
|
|
|
|
if [ -n "$GALAXY_REPORTS_CONFIG_DIR" ]; then
|
|
python ./scripts/build_universe_config.py "$GALAXY_REPORTS_CONFIG_DIR" "$GALAXY_REPORTS_CONFIG"
|
|
fi
|
|
|
|
|
|
if [ "$1" = "--sync-config" ];
|
|
then
|
|
python ./scripts/sync_reports_config.py
|
|
shift
|
|
fi
|
|
|
|
python ./scripts/paster.py serve "$GALAXY_REPORTS_CONFIG" --pid-file="$GALAXY_REPORTS_PID" --log-file="$GALAXY_REPORTS_LOG" $@
|