self-healing demo server script for tunnel hosting

This commit is contained in:
PolyCity
2026-08-23 04:40:02 +00:00
parent a54f04ed5f
commit 1b6b31732b
+9
View File
@@ -0,0 +1,9 @@
#!/usr/bin/env bash
# Self-healing static server for the published demo.
cd "$(dirname "$0")/.."
while true; do
echo "[serve] starting preview $(date -u +%H:%M:%S)"
pnpm exec vite preview --port 4173 --strictPort --host 127.0.0.1
echo "[serve] preview exited ($?) - restarting in 2s"
sleep 2
done