doxa-maps/library/scripts/posters/serve.sh
Doxa Maps e19697673d
Some checks are pending
Deploy to GitHub Pages / build (push) Waiting to run
Deploy to GitHub Pages / deploy (push) Blocked by required conditions
Doxa Maps — the map bundler, 7 production plugins and the Experimental shelf
2026-09-25 20:07:59 +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"