SPARKNET / check_status.sh
MHamdan's picture
Initial commit: SPARKNET framework
a9dc537
#!/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 ""