From e8759cdee86bf37322d24b17cde0a7263f7e1fd6 Mon Sep 17 00:00:00 2001 From: Tiel Coder Date: Fri, 20 Nov 2026 05:39:46 +0000 Subject: [PATCH] docs: rebuild the migrate image before running it docker compose run reuses the previously built tools image, so an upgrade could execute stale seed code against a newer schema. Include the explicit build step in quick start, production deployment, and update commands. --- README.md | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/README.md b/README.md index dd761b1..b958b3d 100644 --- a/README.md +++ b/README.md @@ -104,6 +104,7 @@ cp .env.example .env # openssl rand -base64 32 docker compose up -d db +docker compose --profile tools build migrate docker compose --profile tools run --rm migrate # migrations + seed docker compose up -d --build app ``` @@ -343,12 +344,15 @@ docker compose config --quiet ```bash docker compose up -d db +docker compose --profile tools build migrate docker compose --profile tools run --rm migrate docker compose up -d --build app docker compose ps curl -fsS http://127.0.0.1:3000/api/health ``` +Rebuild `migrate` as shown; `docker compose run` reuses the last built tools image, so without the build step an update can run stale seed code against a newer schema. + `migrate` runs migrations **and the demo seed** (seeded services, sample volunteers, and `admin@glenloch.local`). The seed is idempotent. For a clean production dataset, sign in with the seeded admin, then edit the services and people in Admin; do not re-run the seed after customizing. ### 5. First sign-in and admin bootstrap @@ -500,6 +504,7 @@ Take a backup, then: ```bash cd /opt/glenloch-media git pull --ff-only +docker compose --profile tools build migrate docker compose --profile tools run --rm migrate docker compose up -d --build app docker compose ps