docs(deploy): add .env runtime preservation rules (BIT-25005)
Tests / writer-pipeline tests (push) Successful in 3m9s
Tests / bridge tests (push) Successful in 3m9s
Tests / frontend lib tests (push) Successful in 3m26s
Tests / writer-pipeline tests (pull_request) Successful in 3m16s
Tests / bridge tests (pull_request) Successful in 1m48s
Tests / frontend lib tests (pull_request) Successful in 1m40s
Tests / writer-pipeline tests (push) Successful in 3m9s
Tests / bridge tests (push) Successful in 3m9s
Tests / frontend lib tests (push) Successful in 3m26s
Tests / writer-pipeline tests (pull_request) Successful in 3m16s
Tests / bridge tests (pull_request) Successful in 1m48s
Tests / frontend lib tests (pull_request) Successful in 1m40s
Propagate DEPLOY_STANDARD.md §3.1 to this repo: prohibit cp .env.example .env over existing production .env, require rsync excludes, and mandate PRODUCTION_ACCESS_SYNC_LOG entries for credential changes. Paperclip-Task: BIT-25008
This commit is contained in:
1 parent
8a330be214
commit
ea9a7ad5d9
1 file changed
+16
@@ -4,6 +4,22 @@
|
||||
|
||||
---
|
||||
|
||||
## `.env` preservation in deploy (BIT-25005)
|
||||
|
||||
> Canonical rule: **`docs/DEPLOY_STANDARD.md` §3.1** — meta-repo `paperclip`.
|
||||
|
||||
| Prohibited | Allowed |
|
||||
|-----------|---------|
|
||||
| `cp .env.example .env` over an **existing** `.env` in production | `git pull` / rsync **excluding** `.env` and `*.env` |
|
||||
| Placeholder credentials (`changeme`, `secret`, `password`) in production | Vault values only; document new keys in `.env.example` **empty** |
|
||||
| Changing `DB_*` / `DATABASE_*` without explicit issue, rollback plan, and log | Entry in `docs/PRODUCTION_ACCESS_SYNC_LOG.md` (meta-repo) before applying |
|
||||
|
||||
Deploy scripts must fail (`exit 1`) if they would overwrite an existing `.env` with example content.
|
||||
|
||||
> **Note:** any `cp .env.example .env` instructions in this document apply **only to initial server bootstrap** where no `.env` exists yet. On redeployments, the existing production `.env` must never be overwritten.
|
||||
|
||||
---
|
||||
|
||||
## Overview
|
||||
|
||||
The platform runs on a single LXC container on Proxmox for the initial test deployment. The container hosts all services: Nginx reverse proxy, Astro frontend (Node.js), Fastify bridge (Node.js), WordPress (Docker), MariaDB (Docker), and Redis.
|
||||
|
||||
Reference in new issue
Block a user