Let an installed app drop a need

Taking sso or email out of needs removes the client or mail account once
the new version answers; postgres or mysql need --drop-database (coreapp
deploy asks for the app's name). Their settings leave .env first, so a
postgres -> mysql switch gets mysql's own values; a failed update rolls
back with them intact. The route wait now compares traefik's answer with
the app's own, so an app's 404 isn't taken for a missing route.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
2026-12-03 20:02:03 -07:00
co-authored by Claude Opus 5.5
parent f56641bbe1
commit adcd2f9aec
6 changed files with 148 additions and 28 deletions
+10
View File
@@ -134,6 +134,16 @@ a Core (`CORE_DOMAIN` set), rather than using the single-user edition.
## Needs
Needs can be added to an installed app (deploy sets them up) and dropped
(deploy removes them once the new version answers; if it doesn't, the
update rolls back with them intact). Dropping `sso` or `email` removes the
sign-in client or mail account and their settings. Dropping `postgres` or
`mysql` deletes the app's database, so deploy refuses it unless the user
asks for that: `coreapp deploy --drop-database`, which asks them to type
the app's name. That's the user's decision; don't run it on your own.
Switching between `postgres` and `mysql` is dropping one and adding the
other: the data doesn't move.
### `postgres`: its own database
The Core makes a PostgreSQL user and database just for this app, and adds: