diff options
author | Pjotr Prins | 2020-04-27 16:57:43 -0500 |
---|---|---|
committer | Pjotr Prins | 2020-04-27 16:57:43 -0500 |
commit | c47ed36e165fd39c1064df85c14cf6c5db99ef44 (patch) | |
tree | 090309ce5695dc4c98eef39cd477b2f63b1f7557 /scripts/run_debug.sh | |
parent | a68e8ec18b75d1cde6982aa9565b0293671dcf06 (diff) | |
download | genenetwork2-c47ed36e165fd39c1064df85c14cf6c5db99ef44.tar.gz |
Added a script for a default runner
Diffstat (limited to 'scripts/run_debug.sh')
-rwxr-xr-x | scripts/run_debug.sh | 20 |
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 + |