2026-05-28 10:13:16 -05:00
|
|
|
# Lodge website
|
|
|
|
|
|
|
|
|
|
<overview>
|
|
|
|
|
Static site `www.thelonglakelodge.com` (apex → 301 → www). Source at
|
|
|
|
|
`~/code/git/code.fritzlab.net/websites/thelonglakelodge.com`. Published via
|
|
|
|
|
`action/site-publish@v1`: push to `main` → `aws s3 sync --delete` to Garage
|
|
|
|
|
bucket `thelonglakelodge.com`, ArgoCD reconciles Traefik Ingress + cert.
|
|
|
|
|
</overview>
|
|
|
|
|
|
|
|
|
|
<welcome-packet>
|
|
|
|
|
## Welcome packet PDF (`/welcome`)
|
|
|
|
|
|
2026-05-28 10:19:51 -05:00
|
|
|
`https://www.thelonglakelodge.com/welcome` is a real HTTP 301 redirect to
|
|
|
|
|
`/welcome.pdf` (browser renders the PDF in its native viewer). Unlisted, not
|
|
|
|
|
in nav.
|
2026-05-28 10:13:16 -05:00
|
|
|
|
2026-05-28 10:19:51 -05:00
|
|
|
Both objects live in the Garage S3 bucket only, NOT in git:
|
|
|
|
|
- `s3://thelonglakelodge.com/welcome` — empty object with
|
|
|
|
|
`x-amz-website-redirect-location: /welcome.pdf` and `content-type: text/html`
|
|
|
|
|
- `s3://thelonglakelodge.com/welcome.pdf` — the PDF itself
|
|
|
|
|
|
|
|
|
|
Preserved across site-publish runs via `excludes: [welcome, welcome.pdf]` in
|
|
|
|
|
`site.yaml` (the `--exclude` flag was added to `action/site-publish` for this
|
|
|
|
|
case).
|
2026-05-28 10:13:16 -05:00
|
|
|
|
|
|
|
|
### Update the packet
|
|
|
|
|
|
|
|
|
|
One command — change is live immediately, no git/CI involved:
|
|
|
|
|
|
|
|
|
|
```sh
|
|
|
|
|
aws --profile sjc001 s3 cp /path/to/new.pdf \
|
2026-05-28 10:19:51 -05:00
|
|
|
s3://thelonglakelodge.com/welcome.pdf \
|
2026-05-28 10:13:16 -05:00
|
|
|
--content-type application/pdf
|
|
|
|
|
```
|
|
|
|
|
|
2026-05-28 10:19:51 -05:00
|
|
|
### Recreate the /welcome redirect (rarely needed)
|
|
|
|
|
|
|
|
|
|
```sh
|
|
|
|
|
aws --profile sjc001 s3api put-object \
|
|
|
|
|
--bucket thelonglakelodge.com \
|
|
|
|
|
--key welcome \
|
|
|
|
|
--website-redirect-location /welcome.pdf \
|
|
|
|
|
--content-type text/html
|
|
|
|
|
```
|
|
|
|
|
|
2026-05-28 10:13:16 -05:00
|
|
|
The `sjc001` aws-cli profile is documented in fritzlab `garage.md`.
|
|
|
|
|
</welcome-packet>
|