Roll back failed updates to the version that ran before
coreapps keeps copies of the app's service folder, .env and compose file during an update. If it fails before the app answers, it tears down needs the update added, restores the copies, starts the old version and removes the new image. Data isn't rolled back. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -222,7 +222,16 @@ The Core's own scripts trace secrets, so their output goes to
|
||||
(the `--postgres`/`--sso` examples), `coreapp shell` then
|
||||
`touch /data/x` works; on the Core, `/federated/apps/<name>/data` belongs
|
||||
to uid 65534.
|
||||
10. On a Core whose tier isn't enterprise, deploying a new app asks before
|
||||
10. A failed update rolls back. Note `md5sum` of the app's `.env`,
|
||||
`docker-compose.yml`, `service` and `.coreapp` on the Core. Raise
|
||||
`version`, set `port = 9999` (nothing answers there) and add `"postgres"`
|
||||
to `needs`, then deploy: after "doesn't answer", "Rolling back" and
|
||||
"Rolled back: hello 0.2.0 runs again"; deploy exits 1. The four files
|
||||
are unchanged, the container runs the old tag and answers on its old
|
||||
port, the new tag is gone from `docker image ls`, and `coreapp_hello`
|
||||
isn't in PostgreSQL. With the same `version` (and `port = 9999`):
|
||||
"Rolled back hello's settings. It's the same image tag as before".
|
||||
11. On a Core whose tier isn't enterprise, deploying a new app asks before
|
||||
it's recorded as an add-on; answering no deploys nothing.
|
||||
|
||||
### With a database
|
||||
|
||||
Reference in New Issue
Block a user