diff options
| author | bndw <ben@bdw.to> | 2026-01-24 16:55:52 -0800 |
|---|---|---|
| committer | bndw <ben@bdw.to> | 2026-01-24 16:55:52 -0800 |
| commit | 8a3cff0dd7eb88cadb73a6df4e14f85450d63317 (patch) | |
| tree | 461e3b7af3a71f92c8a916f2e4578a63e2d92f13 /cmd/ship/host/host.go | |
| parent | 9c222e3fe49c6786c1719b6100564d413d7f8db6 (diff) | |
Add auto-generated subdomain feature
When a base domain is configured on a host (e.g., apps.example.com),
deployments automatically get a subdomain ({name}.apps.example.com).
Custom --domain can still be provided to route both domains.
- Add BaseDomain field to Host state
- Add --base-domain flag to host init
- Add 'ship host set-domain' command to update base domain
- Update deploy flow to auto-generate subdomains
- Fix error display (errors were being silently swallowed)
- Remove placeholder email from Caddyfile template
Diffstat (limited to 'cmd/ship/host/host.go')
| -rw-r--r-- | cmd/ship/host/host.go | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/cmd/ship/host/host.go b/cmd/ship/host/host.go index 603a946..81403f9 100644 --- a/cmd/ship/host/host.go +++ b/cmd/ship/host/host.go | |||
| @@ -15,4 +15,7 @@ func init() { | |||
| 15 | Cmd.AddCommand(statusCmd) | 15 | Cmd.AddCommand(statusCmd) |
| 16 | Cmd.AddCommand(updateCmd) | 16 | Cmd.AddCommand(updateCmd) |
| 17 | Cmd.AddCommand(sshCmd) | 17 | Cmd.AddCommand(sshCmd) |
| 18 | Cmd.AddCommand(setDomainCmd) | ||
| 19 | |||
| 20 | initCmd.Flags().String("base-domain", "", "Base domain for auto-generated subdomains (e.g., apps.example.com)") | ||
| 18 | } | 21 | } |
