#!/usr/bin/env bash # # End-to-end re-render of the dashboard demo video. # # Defaults assume you run from inside this repo's vscode-server container # (where host.docker.internal reaches the docker-compose stack). Override # any URL/credential via env vars at the top. # # Usage: # ./render.sh # full pipeline (uses cached auth.json if fresh) # ./render.sh --fresh-auth # force re-auth even if auth.json exists # ./render.sh --no-encode # stop at WebM, skip MP4 encode # ./render.sh --no-audio # skip Qwen3-TTS narration; publish silent MP4 # FORCE_AUTH=1 ./render.sh # same as --fresh-auth # APP_URL=http://localhost:3001 ./render.sh # override frontend URL # TTS_SPEAKER=aiden ./render.sh # override CustomVoice speaker set -euo pipefail # -- config (override via env) ------------------------------------------------- export APP_URL="${APP_URL:-http://host.docker.internal:3001}" export PB_URL="${PB_URL:-http://host.docker.internal:8090}" export API_URL="${API_URL:-http://host.docker.internal:8001}" PB_ADMIN_EMAIL="${PB_ADMIN_EMAIL:-admin@propertymap.local}" PB_ADMIN_PASSWORD="${PB_ADMIN_PASSWORD:-propertymap-dev-2024}" PB_EMAIL="${PB_EMAIL:-demo-video@local.test}" PB_PASSWORD="${PB_PASSWORD:-DemoVideoPass123!}" AUTH_TTL_HOURS="${AUTH_TTL_HOURS:-24}" # re-auth if auth.json older than this # Where the homepage