mirror of
https://github.com/MBombeck/HealthLog.git
synced 2026-11-14 06:40:50 +00:00
Correct operator runbooks against the current code
- attempt-number-semantics: name the real bucket column
(consecutiveFailuresByKind) and drop a drifted line citation
- backup-restore: show the smoke-test response inside the standard
{ data, error } envelope
- deploy: the manual migration step now uses the bundled Prisma CLI
via node (the image strips pnpm); WHOOP vars are already on the
shipped compose whitelist
- encryption-key-rotation: point at the encrypted-column registry
instead of a five-model list several releases behind
- env-check: the CI gate shipped (env-check.yml); the partial-APNs
example now shows the synthetic all-or-none row and the non-zero exit
- password-reset: the admin API reset route exists; only the
self-service route does not
- tls-cert-pin: stop asserting client-repo pin-set details that cannot
be audited from this repository
- drop v141-followup-issues.md: a v1.4.1 punch list whose items are
fixed, removed, or superseded; keeping it under docs/ops invites
re-fixing shipped work
This commit is contained in:
1 parent
7f407797f4
commit
c986efab30
8 files changed
+63
-300
No files matched your search
+7
-4
@@ -16,10 +16,12 @@ canonical command sequence on a single-instance host:
|
||||
# 1. Pull the new image.
|
||||
docker pull ghcr.io/mbombeck/healthlog:vX.Y.Z
|
||||
|
||||
# 2. Run migrations against the live DB using the new image.
|
||||
# 2. Run migrations against the live DB using the new image. The
|
||||
# production image strips pnpm/npm; use the entrypoint's node
|
||||
# invocation of the bundled Prisma CLI instead.
|
||||
docker run --rm --env-file .env.production \
|
||||
ghcr.io/mbombeck/healthlog:vX.Y.Z \
|
||||
pnpm prisma migrate deploy
|
||||
sh -c 'NODE_PATH=/opt/prisma-cli/node_modules node /opt/prisma-cli/node_modules/prisma/build/index.js migrate deploy'
|
||||
|
||||
# 3. Recreate the app container so it picks up the new image.
|
||||
docker compose up -d app
|
||||
@@ -40,8 +42,9 @@ them in order on boot like any other.
|
||||
WHOOP introduces two optional instance env vars, `WHOOP_REDIRECT_URI`
|
||||
and `WHOOP_WEBHOOK_SECRET` (HMAC secret for WHOOP webhook signature
|
||||
verification). Per-user WHOOP client id/secret live in Settings, not
|
||||
in the environment. See `docs/integrations/whoop.md`. Add the two vars
|
||||
to the compose `environment:` whitelist if you set them — vars not on
|
||||
in the environment. See `docs/integrations/whoop.md`. The shipped
|
||||
`docker-compose.yml` already whitelists both under `environment:`; only
|
||||
a forked or older compose file needs them added by hand — vars not on
|
||||
the whitelist never reach the container.
|
||||
|
||||
### What goes wrong if you reverse it
|
||||
|
||||
Reference in new issue
Block a user