aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorpjotrp2016-02-13 12:21:07 +0100
committerPjotr Prins2016-04-20 08:16:48 +0000
commit82f731d11a870262b5d4ed693b86d7dcc40493a1 (patch)
tree486373bac084dc15b4baedc316b1d59776b76626
parente1cdb11c211394472e2f8cdd033fd0f93dbf5cea (diff)
downloadgenenetwork2-82f731d11a870262b5d4ed693b86d7dcc40493a1.tar.gz
* ./bin/genenetwork2: New file
-rwxr-xr-xbin/genenetwork215
-rw-r--r--etc/default_settings.py1
2 files changed, 15 insertions, 1 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
diff --git a/etc/default_settings.py b/etc/default_settings.py
index 7aa24fce..0c7d7bad 100644
--- a/etc/default_settings.py
+++ b/etc/default_settings.py
@@ -12,7 +12,6 @@ SECURITY_CONFIRMABLE = True
SECURITY_TRACKABLE = True
SECURITY_REGISTERABLE = True
SECURITY_RECOVERABLE = True
-
SECURITY_EMAIL_SENDER = "no-reply@genenetwork.org"
SECURITY_POST_LOGIN_VIEW = "/thank_you"
SQLALCHEMY_POOL_RECYCLE = 3600