Release v0.1.1: fix collectstatic crash-loop; ship /api/skill
Fixes the deploy blocker found deploying v0.1.0 to cloud-vm-1: the vendored gridjs.umd.js ended with a //# sourceMappingURL=gridjs.umd.js.map trailer, but that .map isn't in the repo. The strict CompressedManifestStaticFilesStorage backend follows the reference and raises MissingFileError, aborting the entrypoint's collectstatic so the container never served. Stripped the debug-only trailer (no runtime effect); collectstatic now succeeds from a pristine checkout (169 copied, 481 post-processed). Also rolls up this release's already-committed work: GET /api/skill and the location-agnostic posting-skill rewrite. - Bump __version__ to 0.1.1. - Runbook: note that a post-build crash-loop is most likely a collectstatic MissingFileError (check docker logs), and how to clear on-server tracked drift before checking out a tag. - CHANGELOG: 0.1.1 entry. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
parent
fb69261218
commit
5c46f2aa67
4 changed files with 27 additions and 3 deletions
|
|
@ -234,6 +234,20 @@ the code checkout.
|
|||
or `deploy/data` by default) are untracked, so `git pull` never touches them —
|
||||
no need to back them up before a routine redeploy.
|
||||
|
||||
**If the container crash-loops right after a build** (`docker compose ps`
|
||||
shows `restarting`, health never goes green), the most likely cause is the
|
||||
entrypoint's `collectstatic` step failing — check `docker logs daybook`
|
||||
before assuming an env/network problem. A `whitenoise ... MissingFileError`
|
||||
there means a static asset references a file that isn't present (this is what
|
||||
bit v0.1.0). No data or schema impact; fix the asset in the repo, tag, and
|
||||
redeploy.
|
||||
|
||||
**If `git checkout <tag>` refuses because of local working-tree changes** to
|
||||
tracked files (e.g. a previous on-server hotfix), reset those tracked files
|
||||
first — `git checkout -- <file>` for a specific one, or `git stash` /
|
||||
`git reset --hard` to clear all tracked drift. This never touches `deploy/.env`
|
||||
or the data directory, which are untracked and therefore safe.
|
||||
|
||||
## 8. Hardening For Internet-Facing Deployments
|
||||
|
||||
If this VM is reachable from the public internet (not just a private
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue