summaryrefslogtreecommitdiffstats
path: root/cmd/ship/deploy_v2.go
Commit message (Collapse)AuthorAgeFilesLines
* Fix port collision bug, add --container-port flagClawd7 hours1-8/+9
| | | | | | | | | | | | 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.
* Add --domain flag support to v2 deployClawd22 hours1-2/+8
| | | | | Allows specifying a custom domain instead of using the auto-generated subdomain pattern. Usage: ship . --domain bdw.to
* fix: resolve build errors with v1 codeClawd44 hours1-3/+3
| | | | | | | - Rename validateName to validateNameV2 to avoid conflict - Fix host status to print JSON directly (remove unused resp) Builds successfully now
* feat(v2): implement deploy flowsClawd44 hours1-45/+1
| | | | | | | | | | | | - deploy_impl_v2.go: full implementations for static, docker, binary deploys - Static: rsync + Caddyfile generation + reload - Docker: rsync + build + systemd unit + env file + Caddyfile - Binary: scp + systemd unit + service user + env file + Caddyfile - Port allocation: server-side in /etc/ship/ports/ - TTL: server-side in /etc/ship/ttl/ - Health checks: HTTP GET with 30s retry loop All deploy types now functional (pending Go compilation test)
* feat(v2): add CLI structure and deploy orchestrationClawd44 hours1-0/+247
- cmd/ship/root_v2.go: new CLI with ship [PATH] as primary command - cmd/ship/deploy_v2.go: deploy orchestration with context struct - Placeholder implementations for static/docker/binary deploys - Placeholder subcommands (list, status, logs, remove, host) - Support for --name, --health, --ttl, --env flags - SHIP_PRETTY env var support Next: implement actual deploy flows