aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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