diff options
| author | Clawd <ai@clawd.bot> | 2026-02-17 07:59:50 -0800 |
|---|---|---|
| committer | Clawd <ai@clawd.bot> | 2026-02-17 07:59:50 -0800 |
| commit | d97bb6f53eefd2139115d39bca7e17d565222472 (patch) | |
| tree | 428f230dffad49d166bc521609dd3ee236a42010 /cmd/ship/main.go | |
| parent | 3e34265c8a6ea1ec300f987206afb25bad645677 (diff) | |
Fix port collision bug, add --container-port flag
Port allocation:
- Use atomic flock-based allocation via /etc/ship/next_port
- Prevents race conditions when multiple deploys run concurrently
- Each app still gets its port stored in /etc/ship/ports/<name>
Docker container port:
- Add --container-port flag (default 80)
- Template now uses {{.ContainerPort}} instead of hardcoded 80
- Supports containers that listen on 8080, 3000, etc.
Diffstat (limited to 'cmd/ship/main.go')
0 files changed, 0 insertions, 0 deletions
