Docs: adopt builds next to the install and switches over; adopt --undo (decisions 25-26)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
+12
-9
@@ -159,7 +159,7 @@ Secrets stay in each product's own `.env`, never in `church.env`.
|
||||
| `status [<church>]` | Yes: version from `/health`, latest tag, DB, jobs, last backup |
|
||||
| `install <church> --products events --domain …` | Yes, for Events only (from today's `install.sh`: Node 24, PostgreSQL, PM2, nginx, certbot); it writes `church.env` |
|
||||
| `adopt <church> --events-dir …` | Yes (section 5) |
|
||||
| `adopt <church> --undo` | **New, proposed:** goes back to the old folder and the 2.1.x it ran, within the days the old folder is kept |
|
||||
| `adopt <church> --undo` | Yes (decision 26): goes back to the old folder and the 2.1.x it ran, within the days the old folder is kept |
|
||||
| `add <church> <product>` | **Later** (phase 3), when there's a second product to add |
|
||||
|
||||
**Requirement check** (decision 24): before anything is touched, read the target version's
|
||||
@@ -175,8 +175,8 @@ summary lists each product as updated, rolled back or not reached.
|
||||
|
||||
## 5. `crosscode adopt` (once per existing install)
|
||||
|
||||
**Proposed change to ROADMAP §8:** build the new checkout **next to** the running install, then
|
||||
switch over, instead of moving the running folder. Moving the folder underneath running PM2
|
||||
**Decided 2026-11-05 (ROADMAP decision 25):** build the new checkout **next to** the running
|
||||
install, then switch over, instead of moving the running folder. Moving the folder underneath running PM2
|
||||
processes breaks anything they read from disk later (Next.js pages, uploads), so the site would
|
||||
be down for the whole build. Building next to it keeps the old install untouched, which makes
|
||||
rolling back simply "start the old one again".
|
||||
@@ -243,10 +243,13 @@ database or its name.
|
||||
root [HANDOVER.md](./HANDOVER.md) updated with 1b done and 1c (2.3.0, authenticator app 2FA)
|
||||
next.
|
||||
|
||||
## Open questions
|
||||
## Decisions
|
||||
|
||||
1. Build next to the old install and switch over (section 5, recommended), or move the folder as
|
||||
ROADMAP §8 says? If the switch-over is agreed, §8 gets updated to match.
|
||||
2. `adopt --undo`: build it (recommended; it's small once the old folder is kept) or not?
|
||||
3. Do any Events backend tests need a database, which would affect the root `npm run check`?
|
||||
(Answered while doing section 2.)
|
||||
1. `adopt` builds next to the old install and switches over (section 5); ROADMAP §8 updated to
|
||||
match (decision 25).
|
||||
2. `adopt --undo` is built (decision 26).
|
||||
|
||||
## Still open
|
||||
|
||||
- Do any Events backend tests need a database, which would affect the root `npm run check`?
|
||||
(Answered while doing section 2.)
|
||||
|
||||
Reference in New Issue
Block a user