ZDDC/website
ZDDC 714faf60f2 fix(build): copy dist into website/releases/<tool>_alpha.html instead of symlinking
The earlier symlink approach (commit 03f83ad) broke under the canonical
deployment shape. The Caddy systemd unit at
/etc/containers/systemd/caddy.container mounts only

    /home/user/src/zddc/website:/usr/share/caddy/zddc:ro

into the Caddy container, so a symlink at
website/releases/landing_alpha.html → ../../landing/dist/index.html
resolves to /usr/share/caddy/landing/dist/index.html inside the
container — a path that simply doesn't exist there. Result:
GET https://zddc.varasys.io/releases/landing_alpha.html → 404, and
the dev cluster's level-2 stub failed to load.

Revert update_alpha() to a plain copy. Trade-off goes back to: every
dev build dirties the corresponding _alpha.html in git. Commit
alongside source changes (alpha is mutable channel anyway) or
git checkout to discard. cp follows symlinks at the destination, so
the helper now `rm -f`s the dest before copying — handles the
symlink-to-file transition cleanly.

Updates AGENTS.md and CLAUDE.md to describe the copy semantics and
the volume-mount constraint that motivates them. Five _alpha.html
files convert from symlinks back to regular files (typechange).

End-to-end verified: curl https://zddc.varasys.io/releases/landing_alpha.html
returns 200 (30177 bytes) after the rebuild.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
2026-04-28 18:41:27 -05:00
..
css Initial commit 2026-04-27 11:05:47 -05:00
img Initial commit 2026-04-27 11:05:47 -05:00
js Initial commit 2026-04-27 11:05:47 -05:00
releases fix(build): copy dist into website/releases/<tool>_alpha.html instead of symlinking 2026-04-28 18:41:27 -05:00
index.html feat(zddc-server): admin debug page + X-Auth-Request-Email default + hidden-segment guard 2026-04-28 14:02:06 -05:00
install.zip feat(build): symlink website/releases/<tool>_alpha.html into dist instead of copying 2026-04-28 14:01:41 -05:00
reference.html feat(web): releases index, alpha+beta channel builds, inline server section 2026-04-28 10:00:10 -05:00
track-alpha.zip feat(build): symlink website/releases/<tool>_alpha.html into dist instead of copying 2026-04-28 14:01:41 -05:00
track-beta.zip feat(build): symlink website/releases/<tool>_alpha.html into dist instead of copying 2026-04-28 14:01:41 -05:00
track-stable.zip feat(build): symlink website/releases/<tool>_alpha.html into dist instead of copying 2026-04-28 14:01:41 -05:00