mirror of
https://github.com/galaxyproject/galaxy.git
synced 2026-08-29 02:26:59 +08:00
Source virtualenv before python check and for reports app
This commit is contained in:
@@ -2,6 +2,13 @@
|
||||
|
||||
cd `dirname $0`
|
||||
|
||||
# If there is a .venv/ directory, assume it contains a virtualenv that we
|
||||
# should run this instance in.
|
||||
if [ -d .venv ];
|
||||
then
|
||||
. .venv/bin/activate
|
||||
fi
|
||||
|
||||
python ./scripts/check_python.py
|
||||
[ $? -ne 0 ] && exit 1
|
||||
|
||||
@@ -11,13 +18,6 @@ if [ -n "$GALAXY_UNIVERSE_CONFIG_DIR" ]; then
|
||||
python ./scripts/build_universe_config.py "$GALAXY_UNIVERSE_CONFIG_DIR"
|
||||
fi
|
||||
|
||||
# If there is a .venv/ directory, assume it contains a virtualenv that we
|
||||
# should run this instance in.
|
||||
if [ -d .venv ];
|
||||
then
|
||||
. .venv/bin/activate
|
||||
fi
|
||||
|
||||
if [ -n "$GALAXY_RUN_ALL" ]; then
|
||||
servers=`sed -n 's/^\[server:\(.*\)\]/\1/ p' universe_wsgi.ini | xargs echo`
|
||||
daemon=`echo "$@" | grep -q daemon`
|
||||
|
||||
@@ -11,6 +11,13 @@
|
||||
|
||||
cd `dirname $0`
|
||||
|
||||
# If there is a .venv/ directory, assume it contains a virtualenv that we
|
||||
# should run this instance in.
|
||||
if [ -d .venv ];
|
||||
then
|
||||
. .venv/bin/activate
|
||||
fi
|
||||
|
||||
./scripts/common_startup.sh --skip-samples
|
||||
|
||||
GALAXY_REPORTS_CONFIG=${GALAXY_REPORTS_CONFIG:-reports_wsgi.ini}
|
||||
|
||||
Reference in New Issue
Block a user