Archon/deploy
DIY Smart Code d89bc767d2
fix(setup): align PORT default on 3090 across .env.example, wizard, and JSDoc (#1152) (#1271)
The server's getPort() fallback changed from 3000 to 3090 in the Hono
migration (#318), but .env.example, the setup wizard's generated .env,
and the JSDoc describing the fallback were not updated — leaving three
different sources of truth for "the default PORT."

When the wizard writes PORT=3000 to ~/.archon/.env (which the Hono
server loads with override: true, while Vite only reads repo-local
.env), the two processes can land on different ports silently. That
mismatch is the real mechanism behind the failure described in #1152.

- .env.example: comment out PORT, document 3090 as the default
- packages/cli/src/commands/setup.ts: wizard no longer writes PORT=3000
  into the generated .env; fix the "Additional Options" note
- packages/cli/src/commands/setup.test.ts: assert no bare PORT= line and
  the commented default is present
- packages/core/src/utils/port-allocation.ts: fix stale JSDoc "default
  3000" -> "default 3090"
- deploy/.env.example: keep Docker default at 3000 (compose/Caddy target
  that) but annotate it so users don't copy it for local dev

Single source of truth for the local-dev default is now basePort in
port-allocation.ts.
2026-04-17 14:15:37 +02:00
..
.env.example fix(setup): align PORT default on 3090 across .env.example, wizard, and JSDoc (#1152) (#1271) 2026-04-17 14:15:37 +02:00
cloud-init.yml deploy: harden cloud-init with archon user, swap, and fixes (#981) 2026-04-08 12:38:27 +03:00
docker-compose.override.example.yml feat(config): add user-extensible Docker customization templates 2026-04-06 15:26:43 +03:00
docker-compose.yml feat: prepare for open-source migration to coleam00/Archon 2026-04-04 10:47:22 -05:00
Dockerfile.user.example chore: fix remaining references and update README for open-source launch 2026-04-07 08:03:13 -05:00