File size: 1,093 Bytes
a9dc537 |
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 35 36 37 38 39 40 41 |
#!/bin/bash
echo "π SPARKNET Services Status Check"
echo "=================================="
echo ""
# Check frontend
echo "π± Frontend (Port 3000):"
if ss -tlnp | grep -q :3000; then
echo " β
RUNNING"
curl -s http://172.24.50.21:3000 | grep -q "SPARKNET" && echo " β
Responding correctly"
else
echo " β NOT RUNNING"
fi
echo ""
# Check backend
echo "βοΈ Backend (Port 8000):"
if ss -tlnp | grep -q :8000; then
echo " β
RUNNING"
if curl -s http://172.24.50.21:8000/api/health > /dev/null 2>&1; then
echo " β
API responding"
curl -s http://172.24.50.21:8000/api/health | grep -o '"status":"[^"]*"'
else
echo " β³ Starting up (loading AI models)..."
fi
else
echo " β³ Initializing... (this takes 30-60 seconds)"
echo " π‘ To view logs: screen -r sparknet-backend"
fi
echo ""
echo "=================================="
echo ""
echo "π Access URLs:"
echo " Frontend: http://172.24.50.21:3000"
echo " Backend: http://172.24.50.21:8000"
echo " API Docs: http://172.24.50.21:8000/api/docs"
echo ""
|