23 lines
734 B
Bash
Executable File
23 lines
734 B
Bash
Executable File
#!/usr/bin/env bash
|
|
cd "$(dirname "$0")"
|
|
|
|
echo "=== Files ==="
|
|
ls -la .env 2>/dev/null || echo "MISSING deploy/.env — run: cp .env.example .env"
|
|
ls -d ../backend ../frontend 2>/dev/null || echo "MISSING ../backend or ../frontend"
|
|
|
|
echo ""
|
|
echo "=== Containers ==="
|
|
docker compose --env-file .env ps -a 2>/dev/null || docker compose ps -a
|
|
|
|
echo ""
|
|
echo "=== API logs (last 40 lines) ==="
|
|
docker compose --env-file .env logs api --tail 40 2>/dev/null || true
|
|
|
|
echo ""
|
|
echo "=== Port 3001 ==="
|
|
curl -fsS "http://127.0.0.1:${API_PORT:-3001}/health" 2>&1 || echo "curl failed (API not listening)"
|
|
|
|
echo ""
|
|
echo "=== Port 80 (web) ==="
|
|
curl -fsS -o /dev/null -w "HTTP %{http_code}\n" "http://127.0.0.1/" 2>&1 || echo "web not responding"
|