-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstatus.sh
More file actions
executable file
Β·34 lines (28 loc) Β· 1.08 KB
/
status.sh
File metadata and controls
executable file
Β·34 lines (28 loc) Β· 1.08 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
#!/bin/bash
# Check status of all Maatchaa services
echo "π Maatchaa Services Status"
echo "ββββββββββββββββββββββββββββββββββββββββββββββββββ"
echo ""
check_service() {
local name=$1
local process=$2
local pid=$(pgrep -f "$process" | head -n 1)
if [ -n "$pid" ]; then
echo "β
$name: Running (PID: $pid)"
else
echo "β $name: Not running"
fi
}
check_service "Backend API " "uvicorn API:app"
check_service "Shopify App " "shopify app dev"
check_service "ngrok " "ngrok http"
check_service "Frontend " "bun run dev"
check_service "Worker " "python.*background_worker.py"
echo ""
echo "ββββββββββββββββββββββββββββββββββββββββββββββββββ"
echo ""
echo "π Service URLs:"
echo " β’ Backend API: http://localhost:8000"
echo " β’ Frontend: http://localhost:3000"
echo " β’ ngrok: http://localhost:4040"
echo ""