chore(deploy): allow a gitignored local override for deploy targets

deploy.sh now sources ./.deploy.local at runtime if it exists, letting a
maintainer point the script at their own hosts without committing them — the
tracked defaults stay placeholders. .deploy.local and .deploy-local/ are
gitignored so real hostnames/IPs never land in the repo.
This commit is contained in:
Jannis Braun
2026-07-07 19:45:51 +02:00
committed by TheZwiss
parent 85e1975fa5
commit 95b545d8b2
2 changed files with 16 additions and 0 deletions
+6
View File
@@ -34,6 +34,12 @@ id_ed25519*
# Generated deployment config (contains secrets) # Generated deployment config (contains secrets)
livekit.yaml livekit.yaml
# Local deploy targets & private ops notes — REAL hosts/IPs/users for the
# maintainer's own infra. NEVER commit: this is a public repo. deploy.sh reads
# .deploy.local at runtime if present; the committed defaults stay placeholders.
/.deploy.local
/.deploy-local/
# Raw screenshot originals — optimized WebP copies live in docs/screenshots/ # Raw screenshot originals — optimized WebP copies live in docs/screenshots/
demo-pictures/ demo-pictures/
+10
View File
@@ -32,6 +32,16 @@ PI_PATH="~/backspace"
BETA_HOST="orbit.ddns.net" BETA_HOST="orbit.ddns.net"
BETA_PATH="~/backspace" BETA_PATH="~/backspace"
# ── Local target override (gitignored) ──────────────────────
# The values above are public placeholders. A maintainer can point this script
# at real infrastructure by creating ./.deploy.local (git-ignored) that reassigns
# PI_USER / PI_LOCAL / PI_REMOTE / PI_PATH / BETA_HOST / BETA_PATH. This keeps
# real hostnames, IPs, and usernames out of the public repo. Never commit it.
if [[ -f ./.deploy.local ]]; then
# shellcheck source=/dev/null
source ./.deploy.local
fi
# ── Rsync excludes ────────────────────────────────────────── # ── Rsync excludes ──────────────────────────────────────────
EXCLUDES=( EXCLUDES=(