#!/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 # FORCE_AUTH=1 ./render.sh # same as --fresh-auth # APP_URL=http://localhost:3001 ./render.sh # override frontend URL set -euo pipefail # -- config (override via env) ------------------------------------------------- APP_URL="${APP_URL:-http://host.docker.internal:3001}" PB_URL="${PB_URL:-http://host.docker.internal:8090}" 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!}" MAX_DURATION_S="${MAX_DURATION_S:-15}" RECORD_SCALE="${RECORD_SCALE:-2}" # 2x raw capture -> real 50fps after speed-up OUTPUT_FPS="${OUTPUT_FPS:-50}" # matches RECORD_SCALE=2 output cadence CAPTURE_SCALE="${CAPTURE_SCALE:-1.5}" # sharper than 1x without the 2x software-GL cost AUTH_TTL_HOURS="${AUTH_TTL_HOURS:-24}" # re-auth if auth.json older than this # Where the homepage