aboutsummaryrefslogtreecommitdiff
path: root/wqflask/runserver.py
diff options
context:
space:
mode:
authorPjotr Prins2016-06-18 06:57:45 +0000
committerPjotr Prins2016-06-18 06:57:45 +0000
commitc93dfd2a6343690fdcfcb4b5dcb231f0ee4dc8fd (patch)
tree3d9c160041e38f90684eae92738c150618cb7775 /wqflask/runserver.py
parente9275a0eae086c3122d54e7207a4d872bdb0706c (diff)
downloadgenenetwork2-c93dfd2a6343690fdcfcb4b5dcb231f0ee4dc8fd.tar.gz
Logger: improving output
Diffstat (limited to 'wqflask/runserver.py')
-rw-r--r--wqflask/runserver.py11
1 files changed, 6 insertions, 5 deletions
diff --git a/wqflask/runserver.py b/wqflask/runserver.py
index e4392b3f..bc54130c 100644
--- a/wqflask/runserver.py
+++ b/wqflask/runserver.py
@@ -1,5 +1,7 @@
from wqflask import app
+# Start the webserver with ./bin/genenetwork2
+#
# Please note, running with host set externally below combined with debug mode
# is a big security no-no
# Unless you have a firewall setup
@@ -25,12 +27,11 @@ file_handler = logging.FileHandler(app.config['LOGFILE'])
file_handler.setLevel(logging.DEBUG)
app.logger.addHandler(file_handler)
-# import logging_tree
-# logging_tree.printout()
+from utility.tools import WEBSERVER_MODE
app.run(host='0.0.0.0',
port=app.config['SERVER_PORT'],
- debug=True,
- use_debugger=True,
- threaded=True,
+ debug=(WEBSERVER_MODE=='DEBUG'),
+ use_debugger=(WEBSERVER_MODE=='DEBUG'),
+ threaded=(WEBSERVER_MODE=='PROD'),
use_reloader=True)