aboutsummaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorPjotr Prins2020-04-28 11:14:36 -0500
committerPjotr Prins2020-04-28 11:14:36 -0500
commitc675d97beab2b41bd6a1581f13bed59406d038f1 (patch)
treef3c17c8e521300413acf9e7a81a00e1bad18ab9b /scripts
parentcaa9966df61a9e4290d36af557adc3ede1a3674b (diff)
parent9ec149a6a7498fc812ed4a44fa85bb746475a253 (diff)
downloadgenenetwork2-c675d97beab2b41bd6a1581f13bed59406d038f1.tar.gz
Merge with conflicts
Diffstat (limited to 'scripts')
-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
+