chore: require clean production deploys
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user