From fe69b32993ba48623be49404ae07c817a568a01a Mon Sep 17 00:00:00 2001 From: pjotrp Date: Tue, 23 Feb 2016 07:41:22 +0000 Subject: Tell redis where to store its persistent db --- bin/genenetwork2 | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'bin') 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" -- cgit v1.2.3