asifdzakiy-droid commited on
Commit
5111847
·
1 Parent(s): b40e37e

fix: remove postgres and background workers from run.sh

Browse files
Files changed (1) hide show
  1. run.sh +2 -27
run.sh CHANGED
@@ -1,30 +1,5 @@
1
  #!/bin/bash
2
  set -e
3
 
4
- # Run standard postgres entrypoint in background
5
- # This will initialize the DB (running init.sql) if it's the first time
6
- echo "Starting PostgreSQL in background..."
7
- bash /docker-entrypoint.sh postgres &
8
-
9
- # Wait for PostgreSQL to become available
10
- echo "Waiting for PostgreSQL to start..."
11
- until pg_isready -h localhost -p 5432 -U postgres; do
12
- sleep 2
13
- done
14
- echo "PostgreSQL is ready!"
15
-
16
- # Start the Streamlit application in the foreground
17
- echo "Starting Background Ingest Worker..."
18
- python3 -u ingest_worker.py > /tmp/ingest.log 2>&1 &
19
-
20
- echo "Starting FastAPI Server..."
21
- uvicorn api:app --host 0.0.0.0 --port 8000 &
22
-
23
- echo "Starting Streamlit..."
24
- streamlit run app.py --server.port 8501 --server.address 0.0.0.0 &
25
-
26
- echo "Starting MCP SSE Server..."
27
- python3 -u mcp_server.py > /tmp/mcp.log 2>&1 &
28
-
29
- echo "Starting Nginx Proxy..."
30
- nginx -g "daemon off;"
 
1
  #!/bin/bash
2
  set -e
3
 
4
+ echo "Starting Streamlit on port 7860..."
5
+ streamlit run app.py --server.port 7860 --server.address 0.0.0.0