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 ""