aboutsummaryrefslogtreecommitdiff
path: root/wqflask/runserver.py
diff options
context:
space:
mode:
authorpjotrp2015-11-18 11:19:01 +0100
committerpjotrp2015-11-18 11:19:01 +0100
commitcb0f10fc4850b6b06f2237b532317a5c6668584a (patch)
treed143662ecceac5e05bd06afee4c87b2beb88859b /wqflask/runserver.py
parent28ec342362ba068b3d0b5b9a302bc279d251f160 (diff)
parent0310301b30c59eca45235cd1bd1ff8e15923950a (diff)
downloadgenenetwork2-cb0f10fc4850b6b06f2237b532317a5c6668584a.tar.gz
Merge branch 'master' of https://github.com/zsloan/genenetwork2 into zsloan
Diffstat (limited to 'wqflask/runserver.py')
-rwxr-xr-xwqflask/runserver.py10
1 files changed, 6 insertions, 4 deletions
diff --git a/wqflask/runserver.py b/wqflask/runserver.py
index 9d5686a9..59ebf0d4 100755
--- a/wqflask/runserver.py
+++ b/wqflask/runserver.py
@@ -18,9 +18,10 @@ from wqflask import app
#_ch = logging.StreamHandler()
#_log.addHandler(_ch)
+print app.config
+
import logging
-#from themodule import TheHandlerYouWant
-file_handler = logging.FileHandler("/tmp/flask_gn_log_danny_unsecure")
+file_handler = logging.FileHandler(app.config['LOGFILE'])
file_handler.setLevel(logging.DEBUG)
app.logger.addHandler(file_handler)
@@ -28,7 +29,8 @@ import logging_tree
logging_tree.printout()
app.run(host='0.0.0.0',
- port=5003,
- use_debugger=False,
+ port=app.config['SERVER_PORT'],
+ debug=True,
+ use_debugger=True,
threaded=True,
use_reloader=True)