Source virtualenv before python check and for reports app

This commit is contained in:
Lance Parsons
2014-09-04 15:12:04 -04:00
parent 1f731743cb
commit 29d56e518d
2 changed files with 14 additions and 7 deletions
+7 -7
View File
@@ -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`
+7
View File
@@ -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}