# Deployment Runbook v5

## Recommended environment
- PHP 8.3+
- MySQL 8+
- Composer 2+
- Node/Vite if frontend assets are compiled
- HTTPS-enabled domain/subdomain

## Deployment steps
1. Backup existing server files and database if replacing anything.
2. Deploy to staging subdomain first.
3. Configure `.env`.
4. Run composer install.
5. Run migrations on empty database.
6. Run seeders.
7. Run tests.
8. Run UAT checklist.
9. Only then move to production.

## Production warnings
Do not deploy over the existing legacy system. Use a separate account/subdomain/database.
