From 8a3cff0dd7eb88cadb73a6df4e14f85450d63317 Mon Sep 17 00:00:00 2001 From: bndw Date: Sat, 24 Jan 2026 16:55:52 -0800 Subject: 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 --- cmd/ship/list.go | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'cmd/ship/list.go') diff --git a/cmd/ship/list.go b/cmd/ship/list.go index a5b8df3..404ca68 100644 --- a/cmd/ship/list.go +++ b/cmd/ship/list.go @@ -43,7 +43,11 @@ func runList(cmd *cobra.Command, args []string) error { if app.Type == "app" { port = fmt.Sprintf(":%d", app.Port) } - fmt.Fprintf(w, "%s\t%s\t%s\t%s\n", name, app.Type, app.Domain, port) + domain := app.Domain + if domain == "" { + domain = "-" + } + fmt.Fprintf(w, "%s\t%s\t%s\t%s\n", name, app.Type, domain, port) } w.Flush() return nil -- cgit v1.2.3