mirror of
https://github.com/galaxyproject/galaxy.git
synced 2026-08-29 02:26:59 +08:00
Automatically use a virtualenv in galaxy_root/.venv/ if it exists (a la Pulsar).
This commit is contained in:
@@ -11,6 +11,9 @@ scripts/scramble/build
|
||||
scripts/scramble/lib
|
||||
scripts/scramble/archives
|
||||
|
||||
# Python virtualenv
|
||||
.venv
|
||||
|
||||
# Database stuff
|
||||
database/beaker_sessions
|
||||
database/community_files
|
||||
|
||||
@@ -11,6 +11,13 @@ 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`
|
||||
|
||||
Reference in New Issue
Block a user