aboutsummaryrefslogtreecommitdiff
path: root/scripts/run_debug.sh
diff options
context:
space:
mode:
authorPjotr Prins2020-04-30 13:53:44 -0500
committerPjotr Prins2020-04-30 13:53:44 -0500
commit421848837d3b489762bb9e58e5e7047d02cdb20b (patch)
tree243eb730e0bc1c10a1416394927c71ea5f73ddf2 /scripts/run_debug.sh
parent2e4ca1f6732d14c0ce0d953f1c08ecb000a94747 (diff)
parent86d885f5f2e1069a5b1606296a71992805486aec (diff)
downloadgenenetwork2-421848837d3b489762bb9e58e5e7047d02cdb20b.tar.gz
Merge branch 'testing' of github.com:genenetwork/genenetwork2 into testing.3
Diffstat (limited to 'scripts/run_debug.sh')
-rwxr-xr-xscripts/run_debug.sh20
1 files changed, 20 insertions, 0 deletions
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
+