aboutsummaryrefslogtreecommitdiff
path: root/wqflask/runserver.py
diff options
context:
space:
mode:
authorzsloan2019-02-18 10:41:13 -0600
committerGitHub2019-02-18 10:41:13 -0600
commit91df491997694f1482119add20bb93bdd2f9e69b (patch)
treecf7bfb141eb8c77ded68c2a1214589226f82e925 /wqflask/runserver.py
parent57d6d5c279a0386cd6e6ebd1c075c97487a3ee13 (diff)
parent6167e78f7c37b26f5226936e8eff0fe31be8691e (diff)
downloadgenenetwork2-91df491997694f1482119add20bb93bdd2f9e69b.tar.gz
Merge pull request #356 from pjotrp/gn-testing
Updated instructions and SERVER_PORT for single flask server
Diffstat (limited to 'wqflask/runserver.py')
-rw-r--r--wqflask/runserver.py8
1 files changed, 5 insertions, 3 deletions
diff --git a/wqflask/runserver.py b/wqflask/runserver.py
index 5f41d04d..7c06356b 100644
--- a/wqflask/runserver.py
+++ b/wqflask/runserver.py
@@ -27,9 +27,11 @@ app_config()
werkzeug_logger = logging.getLogger('werkzeug')
+from utility.tools import WEBSERVER_MODE, 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,
@@ -38,7 +40,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,
@@ -46,7 +48,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,