aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorpjotrp2016-02-23 07:41:22 +0000
committerPjotr Prins2016-04-20 08:52:15 +0000
commitfe69b32993ba48623be49404ae07c817a568a01a (patch)
treecd30c429313e01c60ce085d9f4383423f5bd4b66
parent1675f34eeff84d7ec0f43c1676f9107e202dda88 (diff)
downloadgenenetwork2-fe69b32993ba48623be49404ae07c817a568a01a.tar.gz
Tell redis where to store its persistent db
-rwxr-xr-xbin/genenetwork28
1 files changed, 7 insertions, 1 deletions
diff --git a/bin/genenetwork2 b/bin/genenetwork2
index a48e8b93..54eee02e 100755
--- a/bin/genenetwork2
+++ b/bin/genenetwork2
@@ -13,8 +13,14 @@ if [ -z $settings ]; then settings=$GN2_BASE_PATH/etc/default_settings.py ; fi
export PYTHONPATH=$GN2_BASE_PATH/wqflask:$PYTHONPATH
export WQFLASK_SETTINGS=$settings
+if [ -z $TEMPDIR ]; then
+ TEMPDIR="/tmp"
+fi
+
# start the redis server
-redis-server &
+echo -n "dir $TEMPDIR
+dbfilename gn2.rdb
+" | redis-server - &
cd $GN2_BASE_PATH/wqflask
echo "Starting with $settings"