chore: require clean production deploys

This commit is contained in:
syntaxbullet
2026-07-13 12:19:45 +02:00
parent b0aec7ba94
commit 0e41c890f9
4 changed files with 20 additions and 12 deletions

View File

@@ -75,21 +75,15 @@ pnpm deploy:vps
The deploy script:
1. refuses to deploy a dirty worktree by default
1. refuses to deploy a dirty worktree
2. rsyncs code to `/var/www/bmp-website/current`
3. excludes `.env`, `content.db`, `public/media`, `.next`, and `node_modules`
3. excludes runtime state, dependency caches, generated files, and local agent tooling
4. writes the deployed Git revision to `.deploy-revision`
5. builds the Docker image on the VPS
6. recreates only the `bmp_website` app container
7. verifies `/` and `/admin`
If you intentionally need an ad-hoc deploy before committing:
```bash
ALLOW_DIRTY=1 pnpm deploy:vps
```
Use that sparingly. The preferred workflow is:
The required workflow is:
```text
commit locally -> deploy that commit -> verify production