ci: add diagnostics for nginx, ports, and services
All checks were successful
Deploy Beta (NATIVE) / deploy (push) Successful in 43s

This commit is contained in:
vickytechkey 2026-10-23 20:50:07 +05:30
parent 172325154e
commit 402738ff4a

View file

@ -59,6 +59,16 @@ jobs:
exit 1 exit 1
} }
echo "=== Diagnostic: Active Listening Ports ==="
sudo ss -tulpn | grep -E "3000|3001|3002|node" || true
echo "=== Diagnostic: Nginx Configuration for status.tradhox.com ==="
sudo grep -rn "status.tradhox.com" /etc/nginx/ -A 20 || true
echo "=== Diagnostic: Systemd Services Status ==="
sudo systemctl is-active resourcemanagement.service || true
sudo systemctl is-active uptime-kuma.service || true
echo "=== Diagnostic: PM2 status ==="
pm2 list || which pm2 || true
# ── 5. Reload Nginx ───────────────────────────────────────── # ── 5. Reload Nginx ─────────────────────────────────────────
sudo nginx -t && sudo systemctl reload nginx sudo nginx -t && sudo systemctl reload nginx