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
This commit is contained in:
2025-12-12 22:40:46 -06:00
parent c16d9743a2
commit 4a8efe17bb
152 changed files with 13767 additions and 0 deletions

25
website-status.sh Executable file
View File

@@ -0,0 +1,25 @@
#!/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 ""