Spaces:
Sleeping
Sleeping
zykrix
commited on
Commit
·
cc7493a
1
Parent(s):
18b2f85
fix: bind Streamlit to correct Render port
Browse files
start.sh
CHANGED
@@ -1,7 +1,7 @@
|
|
1 |
#!/bin/bash
|
2 |
|
3 |
-
#
|
4 |
-
|
5 |
|
6 |
-
#
|
7 |
-
streamlit run app.py --server.port=$PORT --server.address=0.0.0.0
|
|
|
1 |
#!/bin/bash
|
2 |
|
3 |
+
# Ensure the PORT Render expects is used
|
4 |
+
export PORT=${PORT:-8501}
|
5 |
|
6 |
+
# Run Streamlit binding to the correct host and port
|
7 |
+
streamlit run app.py --server.port=$PORT --server.address=0.0.0.0
|