diff options
author | Pjotr Prins | 2016-09-24 07:41:39 +0000 |
---|---|---|
committer | Pjotr Prins | 2016-09-25 07:39:35 +0000 |
commit | e7693e53821747d294452c9bff7e8b0f38a0eb8e (patch) | |
tree | c019cd95ddf99ba1bcde1587c3d454b5b916855e /etc | |
parent | ae1a7f0c8bed6b1a3445a4fac26a578851715629 (diff) | |
download | genenetwork2-e7693e53821747d294452c9bff7e8b0f38a0eb8e.tar.gz |
tools: export GENENETWORK_FILES and move cache into TMPDIR/gn2
Diffstat (limited to 'etc')
-rw-r--r-- | etc/default_settings.py | 13 |
1 files changed, 8 insertions, 5 deletions
diff --git a/etc/default_settings.py b/etc/default_settings.py index df734f7c..9dddd0ad 100644 --- a/etc/default_settings.py +++ b/etc/default_settings.py @@ -22,7 +22,7 @@ SQLALCHEMY_DATABASE_URI = 'mysql://gn2:mysql_password@localhost/db_webqtl_s' SQLALCHEMY_POOL_RECYCLE = 3600 GN_SERVER_URL = "http://localhost:8880/" -# Flask configuration (see website) +# ---- Flask configuration (see website) TRAP_BAD_REQUEST_ERRORS = True SECURITY_CONFIRMABLE = True SECURITY_TRACKABLE = True @@ -34,8 +34,8 @@ SECURITY_POST_LOGIN_VIEW = "/thank_you" SERVER_PORT = 5003 SECRET_HMAC_CODE = '\x08\xdf\xfa\x93N\x80\xd9\\H@\\\x9f`\x98d^\xb4a;\xc6OM\x946a\xbc\xfc\x80:*\xebc' -# Behavioural settings (defaults) note that logger and log levels can -# be overridden at the module level and with enviroment settings +# ---- Behavioural settings (defaults) note that logger and log levels can +# be overridden at the module level and with enviroment settings WEBSERVER_MODE = 'DEV' # Python webserver mode (DEBUG|DEV|PROD) WEBSERVER_BRANDING = None # Set the branding (nyi) WEBSERVER_DEPLOY = None # Deployment specifics (nyi) @@ -49,10 +49,13 @@ LOG_BENCH = True # Log bench marks USE_REDIS = True # REDIS caching (note that redis will be phased out) USE_GN_SERVER = 'False' # Use GN_SERVER SQL calls -# Path overrides for Genenetwork +# ---- Path overrides for Genenetwork +# TMPDIR is normally picked up from the environment HOME=os.environ['HOME'] LOGFILE = HOME+"/genenetwork2.log" -GENENETWORK_FILES = HOME+"/gn2_data" +GENENETWORK_FILES = HOME+"/gn2_data" # base dir for all static data files + +# ---- GN2 Executables PYLMM_COMMAND = str.strip(os.popen("which pylmm_redis").read()) PLINK_COMMAND = str.strip(os.popen("which plink2").read()) GEMMA_COMMAND = str.strip(os.popen("which gemma").read()) |