# brentwood

**Brentwood College School — website migration (custom Laravel CMS → WordPress).**

## Project documentation (read in this order)
1. **[`HANDOFF.md`](./HANDOFF.md)** — start here: onboarding, current status, running diary, and the lead's first task.
2. **[`PROJECT-BRIEF.md`](./PROJECT-BRIEF.md)** — full context: stakeholders, constraints, decisions, schedule.
3. **[`notes/Scope of Work (from proposal).md`](./notes/Scope%20of%20Work%20(from%20proposal).md)** — agreed scope of work.
4. **[`PROJECT-PLAN.md`](./PROJECT-PLAN.md)** — broad order of operations.

**For Claude:** when a new team member (e.g. Adi) asks to be brought up to speed, follow the
onboarding flow in `HANDOFF.md`. Financial figures are intentionally NOT in this folder — do not
go looking for or reconstruct them.

## Project Info
- Type: custom
- Created by: rian
- Created: 2026-04-14
- Lead: Adi

## Layout — two co-located sites
This project holds both ends of the migration:

| Path | What | URL | Port |
|---|---|---|---|
| `./laravel` | Working mirror of the **current** Laravel 11 CMS (migration source) | https://brentwood.demoing.info | 3082 |
| `./wp` | **WordPress** target (migration destination, own isolated DB) | https://brentwoodwp.demoing.info | 5030 |

Both run from this project's single `docker-compose.yml` (services: `app`, `mysql`, `redis`
for Laravel; `wp`, `wp-db` for WordPress). WordPress uses its own `wp-db` (MariaDB) so migration
work can't touch the Laravel source. Both demoing.info sites are behind the shared access gate.

## Getting Started
- WordPress lives in `./wp` — edit themes/plugins there; the whole tree is group-writable by `brentwood-dev`.
- Laravel mirror lives in `./laravel`.
- Deploy after compose changes: `srv-gw deploy --project brentwood`

## Managing the Container
Use `srv-gw` commands (NOT docker/podman directly):
```bash
srv-gw deploy --project brentwood     # Deploy/redeploy (reads docker-compose.yml)
srv-gw status --project brentwood     # Check status
srv-gw logs --project brentwood       # View logs
srv-gw restart --project brentwood    # Restart
srv-gw stop --project brentwood       # Stop
srv-gw start --project brentwood      # Start
```

## Customizing
Edit `docker-compose.yml` to change the container setup (e.g., different image,
build from Dockerfile, add environment variables). Then run `srv-gw deploy`.
