diff options
Diffstat (limited to 'wqflask/runserver.py')
-rw-r--r-- | wqflask/runserver.py | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/wqflask/runserver.py b/wqflask/runserver.py index c0ac980a..15572d97 100644 --- a/wqflask/runserver.py +++ b/wqflask/runserver.py @@ -29,11 +29,10 @@ app_config() werkzeug_logger = logging.getLogger('werkzeug') from utility.tools import WEBSERVER_MODE, SERVER_PORT -port = int(SERVER_PORT) if WEBSERVER_MODE == 'DEBUG': app.run(host='0.0.0.0', - port=port, + port=SERVER_PORT, debug=True, use_debugger=False, threaded=False, @@ -42,7 +41,7 @@ if WEBSERVER_MODE == 'DEBUG': elif WEBSERVER_MODE == 'DEV': werkzeug_logger.setLevel(logging.WARNING) app.run(host='0.0.0.0', - port=port, + port=SERVER_PORT, debug=False, use_debugger=False, threaded=False, @@ -50,7 +49,7 @@ elif WEBSERVER_MODE == 'DEV': use_reloader=True) else: # staging/production modes app.run(host='0.0.0.0', - port=port, + port=SERVER_PORT, debug=False, use_debugger=False, threaded=True, |