diff --git a/SETUP-AND-DEPLOY.md b/SETUP-AND-DEPLOY.md index f03ba47..e7f567a 100644 --- a/SETUP-AND-DEPLOY.md +++ b/SETUP-AND-DEPLOY.md @@ -114,8 +114,12 @@ into the LXC env file later. MIX_ENV=prod DASHBOARD_PASSWORD_HASH='placeholder' mix release --overwrite ``` +The release step also runs `mix assets.deploy` as a pre-assemble step, so +minified + digested JS/CSS are baked into the tarball automatically. You +don't need to run `assets.deploy` separately. + **Expected:** `_build/prod/rel/server/` contains `bin/server`, `bin/migrate`, -`erts-*`, `lib/`, `releases/`. +`erts-*`, `lib/`, `releases/`, and `lib/server-0.1.0/priv/static/cache_manifest.json`. - [ ] Package the release: @@ -816,6 +820,7 @@ Tick each box before declaring the rollout complete. | LXC can't bind port 4000 | Another process owns it. `ss -ltnp | grep 4000`. | | `mix release` fails with DASHBOARD error | You forgot to set `DASHBOARD_PASSWORD_HASH=placeholder` at build. | | Agent logs `{:enoent, "pvesh"}` | Agent is running on a non-Proxmox host, or `$PATH` is empty under systemd. | +| Admin "Add host" redirects to `/admin/hosts?host%5Bname%5D=…` | Asset bundle didn't ship; `cache_manifest.json` missing → LiveView JS never attaches → native HTML GET submit. Rebuild the release and redeploy. | ## Appendix B — File & Port Cheat Sheet