openspec: deploy-admin change — Laravel admin to .13:3030

This commit is contained in:
2026-08-08 07:38:14 +10:00
parent 3cda4df528
commit d88871e914
5 changed files with 89 additions and 0 deletions

View File

@@ -0,0 +1,26 @@
## Why
The Laravel admin works in dev on .27:3030 (Phase 4). Phase 8 puts it **live on .13:3030** behind the existing `admin.where-woof.com` Caddy block (user has added the DNS A records). Same shared Postgres, running via the same Docker approach as dev — no code changes.
## What Changes
- **Deploy `admin/` to .13** (`/home/sam/Docker/Containers/wherewoof-admin/`): rsync source (exclude vendor/node_modules/.env), build the php:8.3 image on .13, `composer install` there, write `.env` pointing at the local Postgres (`192.168.20.13:5434`), `docker compose up -d` on **:3030**.
- **Firewall**: port 3030 must be allowed on .13's NixOS firewall (same as 3020) — user step.
- **Admin user**: already in the shared DB (`admin@where-woof.com`, is_admin) — no re-seed needed.
- **Verify**: `localhost:3030` on .13 → 200; `admin.where-woof.com` via .35 Caddy once DNS propagates.
## Capabilities
### New Capabilities
- `admin-live`: the Laravel admin runs on .13:3030 as a Docker service, reachable via `admin.where-woof.com` through Caddy.
### Modified Capabilities
<!-- none -->
## Impact
- **On .13**: `/home/sam/Docker/Containers/wherewoof-admin/` (Dockerfile, compose, app source), built image, port 3030.
- **Repo**: no code changes; deploy docs updated.
- Shared DB, users, tags all unchanged.