Add Phase 5 Caddy deployment config and sync script

- deploy/baflakehouse.caddy: handle_path snippet routes /baflakehouse*
  to docs/ with prefix stripping so pkgdown flat structure maps correctly
- bin/sync-caddy.sh: one-time script to install snippet and zero-downtime
  reload Caddy; deploy.R handles everything after that automatically

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
2026-02-22 04:56:10 -05:00
parent 7a1a8e0053
commit 5218deab74
2 changed files with 35 additions and 0 deletions

13
deploy/baflakehouse.caddy Normal file
View File

@@ -0,0 +1,13 @@
# BAF Lakehouse pkgdown site
# Served at: https://docs.robwiederstein.org/baflakehouse
#
# handle_path strips the /baflakehouse prefix before handing off to the
# file server, so requests map correctly to the flat docs/ directory.
#
# NOTE: The path below must match the mount point inside the Caddy Docker
# container (i.e., wherever /data/projects/ is mounted in docker-compose.yml).
handle_path /baflakehouse* {
root * /data/projects/bank-fraud-baf-lakehouse/docs
file_server
}