10 lines
305 B
Bash
Executable File
10 lines
305 B
Bash
Executable File
#!/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
|