From 3e34265c8a6ea1ec300f987206afb25bad645677 Mon Sep 17 00:00:00 2001 From: Clawd Date: Tue, 17 Feb 2026 07:54:42 -0800 Subject: Mark TODO #2 as fixed --- TODO.md | 25 ++++++------------------- 1 file changed, 6 insertions(+), 19 deletions(-) (limited to 'TODO.md') diff --git a/TODO.md b/TODO.md index c92175c..6b41d98 100644 --- a/TODO.md +++ b/TODO.md @@ -51,23 +51,10 @@ This allows custom routes (NIP-05, LNURL, rewrites, etc.) while still letting sh --- -### ship host init doesn't create local state.json -**Problem:** After `ship host init`, the local `~/.config/ship/state.json` isn't created with the base_domain. Deploys fail with "HOST_NOT_CONFIGURED". - -**Design:** v2 uses remote state (`/etc/ship/ports/` on server) for port allocation and app tracking. Local state only needs: -- `default_host` — which host to use when `--host` isn't specified -- `base_domain` — for generating URLs - -**Fix:** `ship host init` should create minimal local state: -```json -{ - "default_host": "alaskav6", - "hosts": { - "alaskav6": { - "base_domain": "northwest.io" - } - } -} -``` +### ~~ship host init doesn't create local state.json~~ ✅ FIXED +**Fixed in:** commit 6b2c047 -**Also:** Clean up `internal/state/state.go` — remove `next_port`, `apps`, `AllocatePort()`, and other v1 cruft. Keep it minimal. +- Removed all v1 code (-2837 lines) +- Simplified `internal/state/state.go` to just `default_host` + `base_domain` +- `host init` now creates minimal state.json +- Ports/deploys tracked on server at `/etc/ship/ports/` -- cgit v1.2.3