self-healing demo server script for tunnel hosting
This commit is contained in:
Executable
+9
@@ -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
|
||||
Reference in New Issue
Block a user