aboutsummaryrefslogtreecommitdiff
path: root/wqflask/secure_server.py
diff options
context:
space:
mode:
authorZachary Sloan2013-04-30 22:52:27 +0000
committerZachary Sloan2013-04-30 22:52:27 +0000
commitbfb2195d4aa6af0814a50998b57c89c3d497b4db (patch)
tree37825c982a84ea28333c41f32bd1265519d145a9 /wqflask/secure_server.py
parentd4138b76eae3aa54ba18d44d753cb440aac7a0f8 (diff)
parent34312cfacdcb5af450d33ac3b54d7c01a6a61788 (diff)
downloadgenenetwork2-bfb2195d4aa6af0814a50998b57c89c3d497b4db.tar.gz
Merge branch 'flask' of git://github.com/leiyan/genenetwork into flask
Diffstat (limited to 'wqflask/secure_server.py')
-rw-r--r--wqflask/secure_server.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/wqflask/secure_server.py b/wqflask/secure_server.py
index 425fce89..5448dbeb 100644
--- a/wqflask/secure_server.py
+++ b/wqflask/secure_server.py
@@ -49,16 +49,19 @@ security = Security(app, user_datastore)
import logging
-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)
import logging_tree
logging_tree.printout()
+#print("app.config is:", app.config)
+
if __name__ == '__main__':
#create_user()
app.run(host='0.0.0.0',
+ port=app.config['SERVER_PORT'],
use_debugger=False,
threaded=True,
use_reloader=True)