Skip to content

Commit 8859ffb

Browse files
committed
Updating references in run script
1 parent b1822cf commit 8859ffb

File tree

2 files changed

+11
-8
lines changed

2 files changed

+11
-8
lines changed

minerva_analysis/client/templates/base.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@
6464
</div>
6565
</li>
6666
<li class="nav-item">
67-
{% if is_docker %}
67+
{% if data.is_docker %}
6868
<a id="navbarUpload" class="nav-link" href="http://localhost:8080/upload_page">Upload</a>
6969
{% else %}
7070
<a id="navbarUpload" class="nav-link" href="/upload_page">Upload</a>

run.py

Lines changed: 10 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,24 @@
1+
import sys
2+
13
from waitress import serve
4+
25
from minerva_analysis import app
3-
import multiprocessing
4-
import sys
56

67
if __name__ == '__main__':
7-
#use port 8000 if no port is specified via command line argument
8+
# use port 8000 if no port is specified via command line argument
89
port = 8000 if len(sys.argv) < 2 or not str.isdigit(sys.argv[1]) else sys.argv[1]
910

1011

1112
def str2bool(v):
1213
return v.lower() in ("yes", "true", "t", "1")
13-
if len(sys.argv) > 2 or not str2bool(sys.argv[2]):
14+
15+
16+
if len(sys.argv) > 2 and str2bool(sys.argv[2]):
1417
is_docker = True
1518
else:
1619
is_docker = False
1720
app.config['IS_DOCKER'] = is_docker
1821

19-
20-
print('Serving on 0.0.0.0:' + str(port) + ' or http://localhost:' + str(port) )
21-
serve(app, host='0.0.0.0', port=port, max_request_body_size=1073741824000000, max_request_header_size=85899345920000)
22+
print('Serving on 0.0.0.0:' + str(port) + ' or http://localhost:' + str(port))
23+
serve(app, host='0.0.0.0', port=port, max_request_body_size=1073741824000000,
24+
max_request_header_size=85899345920000)

0 commit comments

Comments
 (0)