Files
SkyArtShop/website-status.sh
Kristen Hercules 4a8efe17bb Add product variants API, deployment scripts, and documentation
- Add Node.js variant-api server with PostgreSQL integration
- Add new utility scripts for system verification and website status
- Update CI/CD workflow configuration
- Add color variant solution documentation
- Add product variants JavaScript support
- Update gitignore for new build artifacts
2025-12-12 22:40:46 -06:00

26 lines
1.1 KiB
Bash
Executable File

#!/bin/bash
# Quick Website Status Check Script
echo "================================"
echo "SkyArtShop Status Check"
echo "================================"
echo ""
echo "Service: $(systemctl is-active skyartshop)"
echo "PostgreSQL: $(systemctl is-active postgresql)"
echo "Nginx: $(systemctl is-active nginx)"
echo ""
echo "Website Tests:"
curl -s -o /dev/null -w " Homepage: %{http_code}\n" http://localhost:5000
curl -s -o /dev/null -w " CSS Loading: %{http_code}\n" http://localhost:5000/assets/css/main.css
curl -s -o /dev/null -w " External HTTPS: %{http_code}\n" https://skyarts.ddns.net 2>/dev/null
echo ""
echo "Database Connections:"
PGPASSWORD='SkyArt2025Pass!' psql -h localhost -U skyartapp -d skyartshop -t -c "SELECT COUNT(*) || ' active connection(s)' FROM pg_stat_activity WHERE datname='skyartshop' AND usename='skyartapp';"
echo ""
echo "Ports Listening:"
ss -tulnp 2>/dev/null | grep -E ":80|:443|:5000|:5432" | awk '{print " " $1, $5}' | sort -u
echo ""
echo "Recent Errors:"
journalctl -u skyartshop -n 50 --no-pager | grep -iE "error|exception|fail" | wc -l | xargs -I {} echo " {} error(s) in last 50 log entries"
echo ""