doxa-maps/library/scripts/posters/serve.sh
doxa-maps d5ba21fa76 doxa-maps — portable bundler for embeddable JAMstack maps
Standalone repo that builds embeddable JAMstack map bundles (web components),
composes them into a lazy-loaded SPA via layouts/, and optionally wraps a
Capacitor Android/iOS app — one build, choose your output/CDN. Diátaxis docs.

History reset to a single clean commit; no PII, IPs, or internal terms.
2026-09-10 01:53:07 +00:00

13 lines
498 B
Bash
Executable file

#!/usr/bin/env bash
# serve.sh — serve the UPG100 poster gallery over HTTP so the browser can
# fetch the PNGs + iframe the poster HTMLs (file:// blocks both).
#
# ./serve.sh # serve out/ on :8090
# PORT=9000 ./serve.sh # custom port
set -euo pipefail
HERE="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
PORT="${PORT:-8090}"
cd "$HERE/out"
echo "==> UPG100 poster gallery: http://localhost:${PORT}/index.html"
echo " (Ctrl-C to stop)"
exec python3 -m http.server "$PORT"