Document backend/.env as a Stage 1 requirement, not Stage 9
This commit is contained in:
parent
a21eb69751
commit
016de0a78d
|
|
@ -70,6 +70,17 @@ per-client backup.
|
|||
bench serves every client on it (see "Architecture" above) — and go straight to Stage 2 with the
|
||||
new site name.
|
||||
|
||||
⚠ **Confirmed the hard way: `backend/.env` must exist before the first `docker compose up`, not
|
||||
later.** `cp backend/.env.example backend/.env`, filling in `SENTRY_DSN` and leaving
|
||||
`ENVIRONMENT=production` — do this now, before anything below. Unlike `tenants.json` (a volume
|
||||
mount, tolerant of arriving later, in Stage 9) and `backup/.env` (read only by the standalone
|
||||
backup script, in Stage 10), `backend/.env` is loaded via `env_file:` in `docker-compose.yml` —
|
||||
Compose needs to resolve that file just to parse the project config, before starting *any*
|
||||
container. Missing it doesn't just fail `backend-billing`; it fails `docker compose config`
|
||||
outright, which means the whole stack — Frappe included — never comes up at all. This is a
|
||||
one-time, per-bench file, the same as the root `.env` — not something each new client (Stage 2
|
||||
onward) needs their own copy of.
|
||||
|
||||
**Optional — this product's own branding (recommended for a real client), before the first
|
||||
`docker compose up`.** Stock ERPNext shows its own name and logo in a few spots Website Settings
|
||||
can't reach — confirmed by reading Frappe's own source, not guessed (see
|
||||
|
|
@ -270,6 +281,10 @@ by Stage 5's provisioning script.
|
|||
bench, isolated by its own entry in `backend/tenants.json`. QR generation needs no per-client
|
||||
setup at all; it's already tenant-agnostic.
|
||||
|
||||
(`backend/.env` itself — `SENTRY_DSN`/`ENVIRONMENT`/the two path vars — should already exist from
|
||||
Stage 1; it's one-time-per-bench, not something this or any later client needs its own copy of.
|
||||
If `backend-billing` never came up at all back in Stage 1, that file is the first thing to check.)
|
||||
|
||||
1. Create one dedicated System Manager User for this client (e.g.
|
||||
`billing-service@<client>.local`), no welcome email.
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue