Commit
·
3f234d7
1
Parent(s):
d0354d2
testing v-0.0.9
Browse files
app.py
CHANGED
@@ -34,9 +34,10 @@ if env_var not in os.environ:
|
|
34 |
print(f"{env_var} does not exist")
|
35 |
# st.write(f"{env_var} does not exist")
|
36 |
try:
|
37 |
-
result = subprocess.run(["bash", "init.sh"], check=True, capture_output=True, text=True)
|
38 |
-
print("Script output:")
|
39 |
-
print(result.stdout)
|
|
|
40 |
# st.write("Script output:")
|
41 |
# st.write(result.stdout)
|
42 |
while not is_port_in_use(host, port):
|
@@ -70,9 +71,10 @@ else:
|
|
70 |
# st.write(f"Nothing is listening on {host}:{port}")
|
71 |
# st.write("Executing init2.sh")
|
72 |
try:
|
73 |
-
result = subprocess.run(["bash", "init2.sh"], check=True, capture_output=True, text=True)
|
74 |
-
print("Script output:")
|
75 |
-
print(result.stdout)
|
|
|
76 |
# st.write("Script output:")
|
77 |
# st.write(result.stdout)
|
78 |
except subprocess.CalledProcessError as e:
|
|
|
34 |
print(f"{env_var} does not exist")
|
35 |
# st.write(f"{env_var} does not exist")
|
36 |
try:
|
37 |
+
# result = subprocess.run(["bash", "init.sh"], check=True, capture_output=True, text=True)
|
38 |
+
# print("Script output:")
|
39 |
+
# print(result.stdout)
|
40 |
+
subprocess.run(["bash", "init.sh"], check=True, text=True)
|
41 |
# st.write("Script output:")
|
42 |
# st.write(result.stdout)
|
43 |
while not is_port_in_use(host, port):
|
|
|
71 |
# st.write(f"Nothing is listening on {host}:{port}")
|
72 |
# st.write("Executing init2.sh")
|
73 |
try:
|
74 |
+
# result = subprocess.run(["bash", "init2.sh"], check=True, capture_output=True, text=True)
|
75 |
+
# print("Script output:")
|
76 |
+
# print(result.stdout)
|
77 |
+
subprocess.run(["bash", "init2.sh"], check=True, text=True)
|
78 |
# st.write("Script output:")
|
79 |
# st.write(result.stdout)
|
80 |
except subprocess.CalledProcessError as e:
|