aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPjotr Prins2020-04-27 16:57:43 -0500
committerPjotr Prins2020-04-28 07:48:32 -0500
commit1b83ff353bf86709643c671ff78a69fd9ede72a8 (patch)
tree85bdfc7d6bc9d7d412ce993296331e7a206cd96b
parent2fbd5b1283cbbba19edf27ec0109e64ef8bc4723 (diff)
downloadgenenetwork2-1b83ff353bf86709643c671ff78a69fd9ede72a8.tar.gz
Added a script for a default runner
-rw-r--r--etc/default_settings.py2
-rwxr-xr-xscripts/run_debug.sh20
2 files changed, 22 insertions, 0 deletions
diff --git a/etc/default_settings.py b/etc/default_settings.py
index 75f84dc4..053b906d 100644
--- a/etc/default_settings.py
+++ b/etc/default_settings.py
@@ -28,6 +28,8 @@ GN_VERSION = open("../etc/VERSION","r").read()
SQL_URI = "mysql://gn2:mysql_password@localhost/db_webqtl_s"
SQL_ALCHEMY_POOL_RECYCLE = 3600
GN_SERVER_URL = "http://localhost:8880/" # REST API server
+GN2_BASE_URL = "http://genenetwork.org/" # to pick up REST API
+GN2_BRANCH_URL = GN2_BASE_URL
# ---- Flask configuration (see website)
TRAP_BAD_REQUEST_ERRORS = True
diff --git a/scripts/run_debug.sh b/scripts/run_debug.sh
new file mode 100755
index 00000000..be7ecdb8
--- /dev/null
+++ b/scripts/run_debug.sh
@@ -0,0 +1,20 @@
+#! /bin/bash
+#
+# PLEASE DO NOT CHANGE THIS FILE - copy it elsewhere to run
+#
+# Run with GN2_PROFILE and SERVER_PORT overrides, e.g.
+#
+# env GN2_PROFILE=/usr/local/guix-profiles/gn-latest SERVER_PORT=5010 scripts/run_debug.sh
+
+[ -z $GN2_PROFILE ] && export GN2_PROFILE=/usr/local/guix-profiles/gn-latest
+[ -z $SERVER_PORT ] && export SERVER_PORT=5010
+
+echo Running on port $SERVER_PORT from $GN2_PROFILE
+
+cwd=`pwd`
+echo Running source from $cwd
+
+mkdir -p ~/tmp
+
+env TMPDIR=~/tmp WEBSERVER_MODE=DEBUG LOG_LEVEL=DEBUG GENENETWORK_FILES=/export/data/genenetwork/genotype_files/ SQL_URI=mysql://webqtlout:webqtlout@localhost/db_webqtl ./bin/genenetwork2 etc/default_settings.py -gunicorn-dev
+