Commit
·
a3ad610
1
Parent(s):
5656120
Update start.sh
Browse filesUpdated the file to run both FastAPI and Streamlit
start.sh
CHANGED
|
@@ -1,8 +1,15 @@
|
|
| 1 |
#!/bin/bash
|
| 2 |
|
| 3 |
-
# Start background
|
| 4 |
python scheduler/schedule_tasks.py &> logs/scheduler.log &
|
| 5 |
python monitor/monitor_drift.py &> logs/monitor.log &
|
| 6 |
|
| 7 |
-
# Start
|
| 8 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
#!/bin/bash
|
| 2 |
|
| 3 |
+
# Start background jobs
|
| 4 |
python scheduler/schedule_tasks.py &> logs/scheduler.log &
|
| 5 |
python monitor/monitor_drift.py &> logs/monitor.log &
|
| 6 |
|
| 7 |
+
# Start FastAPI (internal port)
|
| 8 |
+
uvicorn app.fastapi_server:app --host 127.0.0.1 --port 8000 &
|
| 9 |
+
|
| 10 |
+
# Start Streamlit (foreground)
|
| 11 |
+
exec streamlit run app/streamlit_app.py \
|
| 12 |
+
--server.port=7860 \
|
| 13 |
+
--server.address=0.0.0.0 \
|
| 14 |
+
--server.enableCORS false \
|
| 15 |
+
--server.enableXsrfProtection false
|