Keep the pre-move Gitea in .deprecated/gitea as the rollback
The old stpvm service is kept as a compose override with its state mounts pointed at .deprecated/gitea/, where the pre-move data now lives (gitignored), so rolling back is one layered 'up' rather than a revert. Co-Authored-By: Claude Opus 5.5 <[email protected]>
This commit is contained in:
+7
-6
@@ -421,8 +421,8 @@ of deleting the directory:
|
||||
| `${OBSIDIAN_DIR}` | The Obsidian vault (a git clone of the notes repo) | Read-write to backend and silverbullet, **read-only** to silverbullet-public |
|
||||
|
||||
Gitea's state (`gitea/data`, `gitea/config`, the `gitea_db` volume) is on
|
||||
the Gitea LXC, not here; see "Gitea LXC" in §7. stpvm's own `gitea/data` and
|
||||
`gitea/config` are the pre-move copy, kept as the rollback.
|
||||
the Gitea LXC, not here; see "Gitea LXC" in §7. The pre-move copy is in
|
||||
stpvm's `.deprecated/gitea/` (gitignored), kept as the rollback.
|
||||
|
||||
**Ephemeral:** anything else inside a container. Notably the Vue build, the
|
||||
rendered icecast config, and the Gitea runner's downloaded binary
|
||||
@@ -708,10 +708,11 @@ the LXC, so pull and `up -d` here afterwards.
|
||||
`GITEA_UPSTREAM` at the new address and `docker compose up -d gitea` on
|
||||
stpvm. The SSH host key is in `gitea/data`, so clients' `known_hosts` still
|
||||
match.
|
||||
- *Rollback to running it on stpvm:* revert the commit that made `gitea` a
|
||||
forwarder, restore its database into stpvm's `db`, and `docker compose up
|
||||
-d gitea` with stpvm's own `gitea/data` (the pre-move copy, so anything
|
||||
pushed since the move has to be copied back from the LXC first).
|
||||
- *Rollback to running it on stpvm:* stop it on the LXC, copy its
|
||||
`gitea/data` and database back over the pre-move copy in
|
||||
`.deprecated/gitea/` and stpvm's `db`, then
|
||||
`docker compose -f docker-compose.yml -f .deprecated/gitea/docker-compose.gitea.yml up -d gitea`.
|
||||
`.deprecated/README.md` has the details.
|
||||
|
||||
**Set up the CI runner on a fresh host:**
|
||||
|
||||
|
||||
Reference in New Issue
Block a user