diff --git a/minerva_analysis/client/templates/base.html b/minerva_analysis/client/templates/base.html
index a4fa0056d..32f24b390 100644
--- a/minerva_analysis/client/templates/base.html
+++ b/minerva_analysis/client/templates/base.html
@@ -64,7 +64,7 @@
- {% if is_docker %}
+ {% if data.is_docker %}
Upload
{% else %}
Upload
diff --git a/run.py b/run.py
index bd5990bcd..f05850871 100644
--- a/run.py
+++ b/run.py
@@ -1,21 +1,24 @@
+import sys
+
from waitress import serve
+
from minerva_analysis import app
-import multiprocessing
-import sys
if __name__ == '__main__':
- #use port 8000 if no port is specified via command line argument
+ # use port 8000 if no port is specified via command line argument
port = 8000 if len(sys.argv) < 2 or not str.isdigit(sys.argv[1]) else sys.argv[1]
def str2bool(v):
return v.lower() in ("yes", "true", "t", "1")
- if len(sys.argv) > 2 or not str2bool(sys.argv[2]):
+
+
+ if len(sys.argv) > 2 and str2bool(sys.argv[2]):
is_docker = True
else:
is_docker = False
app.config['IS_DOCKER'] = is_docker
-
- print('Serving on 0.0.0.0:' + str(port) + ' or http://localhost:' + str(port) )
- serve(app, host='0.0.0.0', port=port, max_request_body_size=1073741824000000, max_request_header_size=85899345920000)
\ No newline at end of file
+ print('Serving on 0.0.0.0:' + str(port) + ' or http://localhost:' + str(port))
+ serve(app, host='0.0.0.0', port=port, max_request_body_size=1073741824000000,
+ max_request_header_size=85899345920000)