Replace Werkzeug with Bjoern as underlying WSGI server (#672)

This commit is contained in:
Ta-Ching Chen
2018-05-09 14:00:40 +08:00
committed by GitHub
parent 0a648d1d75
commit 9c91f00cb4
4 changed files with 5 additions and 3 deletions
+2 -1
View File
@@ -4,6 +4,7 @@ import logging
import sys
import imp
import os
import bjoern
from flask import Flask, request, abort, g
@@ -99,4 +100,4 @@ def setup_logger(loglevel):
#
setup_logger(logging.DEBUG)
app.logger.info("Starting server")
app.run(host='0.0.0.0', port=8888)
bjoern.run(app, '0.0.0.0', 8888, reuse_port=True)