diff options
author | Lei Yan | 2015-05-12 20:47:50 +0000 |
---|---|---|
committer | Lei Yan | 2015-05-12 20:47:50 +0000 |
commit | cb5684aa004d59585167804450f64ab74d3a3412 (patch) | |
tree | 31aedac7d1fd945c893f07e2e419b4361f00925b /wqflask/runserver.py | |
parent | d11b71790f5f7c7eb9fe41704e1df7d8447371c9 (diff) | |
parent | f228118ac112f3ebab5faf41ac9e1bc2a6e2c0fa (diff) | |
download | genenetwork2-cb5684aa004d59585167804450f64ab74d3a3412.tar.gz |
Merge https://github.com/genenetwork/genenetwork2
Diffstat (limited to 'wqflask/runserver.py')
-rwxr-xr-x | wqflask/runserver.py | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/wqflask/runserver.py b/wqflask/runserver.py index 8ab88580..5a76d1e2 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") +file_handler = logging.FileHandler(app.config['LOGFILE']) file_handler.setLevel(logging.DEBUG) app.logger.addHandler(file_handler) @@ -28,7 +29,7 @@ import logging_tree logging_tree.printout() app.run(host='0.0.0.0', - port=5002, + port=app.config['SERVER_PORT'], use_debugger=False, threaded=True, use_reloader=True) |