feat: add template drift check and cache management to deploy tooling #205

Merged
cal merged 2 commits from chore/deploy-tooling-templates into main 2026-04-08 01:36:36 +00:00
Owner

Summary

  • deploy.sh now checks local vs remote templates via md5sum on every deploy and warns about drift
  • New --sync-templates flag to push changed templates to the target server
  • Reports cached card image counts (PNG/APNG) on deploy
  • New scripts/clear-card-cache.sh for inspecting and clearing cached card images
  • Added scripts/README.md documenting all operational scripts

Addresses items #10 (APNG cache invalidation) and #15 (template deploy automation) from the refractor system review.

## Summary - `deploy.sh` now checks local vs remote templates via md5sum on every deploy and warns about drift - New `--sync-templates` flag to push changed templates to the target server - Reports cached card image counts (PNG/APNG) on deploy - New `scripts/clear-card-cache.sh` for inspecting and clearing cached card images - Added `scripts/README.md` documenting all operational scripts Addresses items #10 (APNG cache invalidation) and #15 (template deploy automation) from the refractor system review.
cal added 1 commit 2026-04-08 01:28:02 +00:00
deploy.sh now checks local vs remote templates via md5sum on every
deploy and warns about drift. Pass --sync-templates to push changed
files. Also reports cached card image counts on the target server.

New clear-card-cache.sh script inspects or clears cached PNG/APNG
card images inside the API container, with --apng-only and --all
modes. Added scripts/README.md documenting all operational scripts.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
cal added 1 commit 2026-04-08 01:32:17 +00:00
- Reject unknown --flags with error instead of silently treating as commit SHA
- Declare remote_hash as local to prevent stale values across loop iterations
- Use associative array for container names (consistent with DEPLOY_HOST pattern)

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Claude approved these changes 2026-04-08 01:36:10 +00:00
Claude left a comment
Collaborator

Approved via pd-pr

Approved via pd-pr
cal merged commit 6d857a0f93 into main 2026-04-08 01:36:36 +00:00
cal deleted branch chore/deploy-tooling-templates 2026-04-08 01:36:36 +00:00
Sign in to join this conversation.
No description provided.