# brentwooddev - WordPress Site

## Overview
WordPress site for brentwooddev.

## URLs
- **Site**: https://brentwooddev.demoing.info
- **Admin**: https://brentwooddev.demoing.info/wp-admin/

## 📣 Deploying to dev.brentwood.ca — READ THIS (added 2026-06-17 by Rian)

**For Adi:** the WordPress build now also lives on the client's dev domain
**https://dev.brentwood.ca** (a DigitalOcean droplet). **Keep developing here on mosiah**
(`/srv/apps/brentwooddev`) exactly as before — then **push your progress to the dev URL
with a single command:**

```bash
push-brentwood-dev          # or: bash /srv/apps/brentwooddev/deploy/push-to-dev.sh
```

(Or just ask Claude to "push to dev.") **Rian's suggestion: push every time there's
significant progress.** The dev site is password-gated (not public). Full details, gate
credentials, and droplet facts are in **`deploy/README.md`**.

## Managing the Container
Use `srv-gw` commands (NOT docker/podman directly):
```bash
srv-gw status --project brentwooddev     # Check status
srv-gw logs --project brentwooddev       # View logs
srv-gw restart --project brentwooddev    # Restart
srv-gw stop --project brentwooddev       # Stop
srv-gw start --project brentwooddev      # Start
```

## Database
- **Database**: wp_brentwooddev
- **User**: wp_brentwooddev
- Credentials in `.env` file

## File Structure
```
/srv/apps/brentwooddev/
├── .env                  # Environment variables
├── .project.json         # Project metadata
├── CLAUDE.md             # This file
└── wp-content/           # WordPress content (themes, plugins, uploads)
    ├── themes/           # Editable by developers and WordPress
    ├── plugins/          # Editable by developers and WordPress
    └── uploads/          # Media uploads
```

## File Permissions
- wp-content owned by `www-data:brentwooddev-dev` with mode 2775
- Developers in `brentwooddev-dev` group can edit files directly
- WordPress dashboard can also edit/install themes and plugins

## Content Schema (ACF Mode)
Custom post types (staff, livestream, landing, course), their taxonomies, and
custom fields are defined via **ACF Pro Local JSON** in
`wp-content/themes/kadence-child/acf-json/` — see the `README.md` in that
folder for the full schema and field-key rules. The `brentwood-migration`
plugin is deactivated and redundant; do not reactivate it.

## Notes
- Port 3097 (internal, proxied through Caddy)
- Resource limits: 1GB RAM, 1 CPU
- Created: 2026-06-03

