fix(deploy): harden EC2 pipeline and update docs for Caddy architecture - #5
Merged
Conversation
- Health check now retries 10×1s instead of racing container startup - Build context uses a temp dir instead of accumulating releases/$SHA - Remove dead ~/jakeforge/current symlink (never read by anything) - Tag only :latest (drop unused :$SHA) and prune old images after deploy - Bind container to 127.0.0.1:5186 (Caddy owns 80/443) - README: lead with live URL, add Caddy setup section, fix smoke-test guidance that previously suggested -p 80:5186 (collides with Caddy) - Fix stale "GitHub Pages" comment in useTemplates.ts Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
docker run -d, which raced container startup on the t3.micro~/jakeforge/releases/$SHAaccumulation); drop unused:$SHAimage tag and rundocker image prune -fafter each deploy127.0.0.1:5186:5186(Caddy owns 80/443); removes the deadcurrentsymlink-p 80:5186(the exact bind error from deploy run #11)useTemplates.tsno longer credits "GitHub Pages" for the no-server fallbackTest plan
curl -I https://jakeforge.xinyiklin.comreturns 200 after deploy~/jakeforge/releases/dir created on EC2docker imagesshows only:latesttag after deploy🤖 Generated with Claude Code