diff options
Diffstat (limited to 'wqflask')
-rw-r--r-- | wqflask/runserver.py | 4 | ||||
-rw-r--r-- | wqflask/utility/tools.py | 1 |
2 files changed, 5 insertions, 0 deletions
diff --git a/wqflask/runserver.py b/wqflask/runserver.py index 5f41d04d..c0ac980a 100644 --- a/wqflask/runserver.py +++ b/wqflask/runserver.py @@ -9,6 +9,7 @@ from wqflask import app + import logging import utility.logger logger = utility.logger.getLogger(__name__ ) @@ -27,6 +28,9 @@ 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, diff --git a/wqflask/utility/tools.py b/wqflask/utility/tools.py index ea216a35..f12b0d76 100644 --- a/wqflask/utility/tools.py +++ b/wqflask/utility/tools.py @@ -233,6 +233,7 @@ def show_settings(): # Cached values GN_VERSION = get_setting('GN_VERSION') HOME = get_setting('HOME') +SERVER_PORT = get_setting('SERVER_PORT') WEBSERVER_MODE = get_setting('WEBSERVER_MODE') GN_SERVER_URL = get_setting('GN_SERVER_URL') SQL_URI = get_setting('SQL_URI') |