Fixes from the second Supermarket run: database versions, health host
The rerun found Supermarket needs PostgreSQL 18 while the Core runs 17.6, which nothing had shown. The skill now gives the version and says to check the app's; coreapp status shows the Core's PostgreSQL/MariaDB version. Deploy's health check sends the app's Host, as traefik does; a same-version deploy says so. The skill covers making the owner at startup, building settings in the app's config loader, and checking mail. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -203,10 +203,14 @@ The Core's own scripts trace secrets, so their output goes to
|
||||
the container is recreated, the page shows the change, `.env` is
|
||||
unchanged. `coreapp deploy` again: "The Core already has this image.",
|
||||
and the container is the same (`docker inspect -f '{{.Created}}'`);
|
||||
`coreapp deploy --recreate`: a new container, same data.
|
||||
`coreapp deploy --recreate`: "Updating hello (0.1.0 again, in a new
|
||||
container)...", a new container, same data.
|
||||
5. Raise `version` to 0.2.0, `coreapp deploy`: "Updated"; the container
|
||||
runs `:0.2.0`; `docker image ls localhost/coreapp/hello` on the Core lists
|
||||
only 0.2.0.
|
||||
5a. An app that answers 421 to an unknown `Host` (Supermarket): deploy's
|
||||
wait passes because it sends `Host: <name>.<domain>`; on the Core, curl
|
||||
of its health URL gives 421 bare, 200 with that `Host`.
|
||||
6. `coreapp status` (address and port), `coreapp logs`, `coreapp shell`
|
||||
(exit with `exit`), `coreapp shell 'id; echo $APP_URL'` (prints both,
|
||||
no terminal needed, also when piped), `coreapp list` (all apps installed
|
||||
@@ -272,7 +276,9 @@ The Core's own scripts trace secrets, so their output goes to
|
||||
2. `coreapp deploy`, `coreapp check`. Loading the page several times
|
||||
(`curl -s https://guest-book.<domain>/ | grep visits`) counts up. On the
|
||||
Core, `docker exec postgresql psql -U postgres -l` lists `coreapp_guest_book`,
|
||||
owned by `coreapp_guest_book`; `.env` has `DB_*`.
|
||||
owned by `coreapp_guest_book`; `.env` has `DB_*`. `coreapp status`:
|
||||
"The Core's PostgreSQL: 17.6" (`mysql` apps: "The Core's MariaDB:
|
||||
12.1.2").
|
||||
3. Change `app.py`, `coreapp deploy`: the change shows, the count continues.
|
||||
4. `virsh -c qemu:///system reboot coreserver`: once the Core is up, the
|
||||
app answers and the count continues (its log may show "Waiting for the
|
||||
|
||||
Reference in New Issue
Block a user