gabriel / musehub public
fix patch deploy dev
AI Agent gabriel · 148 days ago · Apr 28, 2026 · Diff

fix(deploy): guard nginx active-port file against bare-port corruption

- sanitize_nginx_port_file() auto-corrects bare port numbers to the full 'server 127.0.0.1:{port};' directive at deploy startup - nginx -t validation added before every nginx -s reload in nginx_point_to and --init mode — deploy aborts rather than reloading a broken config - Prevents manual SSM interventions that wrote a bare port from silently leaving nginx misconfigured until the next full deploy

sha256:8c880c891f8071c2b0b44557c8704c265f982bbb88552611b7cfbebde1b25225 sha
+3 ~1 symbols
sha256:d95be097890be15e035722247cf8c3dfcb9ce2492ba3b9123eae8cd30bc74116 snapshot
+3
symbols added
~1
symbol modified
0
dead code introduced
Semantic Changes 4 symbols
~ deploy/deploy.sh .sh 3 symbols added, 1 symbol modified
+ bare_port variable variable bare_port L81–81
+ content variable variable content L73–73
+ sanitize_nginx_port_file function function sanitize_nginx_port_file L70–90
← Older Oldest on dev
All commits
Newer → Latest on dev

0 comments

No comments yet. Be the first to start the discussion.

To add a comment, use the Muse CLI: muse hub commit comment sha256:8c880c891f8071c2b0b44557c8704c265f982bbb88552611b7cfbebde1b25225 --body "your comment"