aboutsummaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
authorpjotrp2016-02-13 12:21:07 +0100
committerPjotr Prins2016-04-20 08:16:48 +0000
commit82f731d11a870262b5d4ed693b86d7dcc40493a1 (patch)
tree486373bac084dc15b4baedc316b1d59776b76626 /bin
parente1cdb11c211394472e2f8cdd033fd0f93dbf5cea (diff)
downloadgenenetwork2-82f731d11a870262b5d4ed693b86d7dcc40493a1.tar.gz
* ./bin/genenetwork2: New file
Diffstat (limited to 'bin')
-rwxr-xr-xbin/genenetwork215
1 files changed, 15 insertions, 0 deletions
diff --git a/bin/genenetwork2 b/bin/genenetwork2
new file mode 100755
index 00000000..9cac31d5
--- /dev/null
+++ b/bin/genenetwork2
@@ -0,0 +1,15 @@
+#! /bin/bash
+#
+# This will run the server with default settings
+
+# Absolute path to this script, e.g. /home/user/bin/foo.sh
+SCRIPT=$(readlink -f "$0")
+# Absolute path this script is in, thus /home/user/bin
+SCRIPTPATH=$(dirname $(dirname "$SCRIPT"))
+echo $SCRIPTPATH
+
+export PROFILE=$SCRIPTPATH
+export PYTHONPATH=$PROFILE/wqflask:$PYTHONPATH
+export WQFLASK_SETTINGS=$PROFILE/etc/default_settings.py
+
+/usr/bin/env python ./wqflask/runserver.py