aboutsummaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
authorpjotrp2016-02-16 10:30:27 +0000
committerPjotr Prins2016-04-20 08:30:21 +0000
commitc76299fa981add7b8cf56126c8d7ffeb9a6c4034 (patch)
treee5892fcefc84486107cc45791e198cabfe8f8305 /bin
parentf1a9ce85521180b9204d14203677a92f944e2859 (diff)
downloadgenenetwork2-c76299fa981add7b8cf56126c8d7ffeb9a6c4034.tar.gz
Successful startup of GN2 with MySQL
Diffstat (limited to 'bin')
-rwxr-xr-xbin/genenetwork28
1 files changed, 7 insertions, 1 deletions
diff --git a/bin/genenetwork2 b/bin/genenetwork2
index d0177045..a48e8b93 100755
--- a/bin/genenetwork2
+++ b/bin/genenetwork2
@@ -8,8 +8,14 @@ SCRIPT=$(readlink -f "$0")
GN2_BASE_PATH=$(dirname $(dirname "$SCRIPT"))
echo $GN2_BASE_PATH
+settings=$1
+if [ -z $settings ]; then settings=$GN2_BASE_PATH/etc/default_settings.py ; fi
export PYTHONPATH=$GN2_BASE_PATH/wqflask:$PYTHONPATH
-export WQFLASK_SETTINGS=$GN2_BASE_PATH/etc/default_settings.py
+export WQFLASK_SETTINGS=$settings
+
+# start the redis server
+redis-server &
cd $GN2_BASE_PATH/wqflask
+echo "Starting with $settings"
/usr/bin/env python runserver.py