diff options
author | Pjotr Prins | 2018-09-05 09:49:09 +0000 |
---|---|---|
committer | Pjotr Prins | 2018-09-05 09:49:09 +0000 |
commit | 33e2e09d00881de9b07274bc52b58587e5135cab (patch) | |
tree | 86492a323eece8a67cc85156a72505199b444886 /wqflask/runserver.py | |
parent | b3c2253a99ff9495a0132f466df825340ddf367c (diff) | |
download | genenetwork2-33e2e09d00881de9b07274bc52b58587e5135cab.tar.gz |
ELASTICSEARCH settings and fix runserver.py to run without gunicorn
Diffstat (limited to 'wqflask/runserver.py')
-rw-r--r-- | wqflask/runserver.py | 4 |
1 files changed, 4 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, |