Write the adopted team Rule before the server listens so deploy cannot feature the old draft body.

This commit is contained in:
adilallo committed 2026-11-12 15:55:36 -07:00
1 parent 29a8d2b32b
commit 1ec1f48d35
8 files changed
+232 -86

No files matched your search

+4 -3
View File
@@ -321,8 +321,8 @@ the base image's `node` user (uid 1000), installs `gosu` for the
privilege drop, and symlinks `.next/cache → /tmp/next-cache` so
Next.js ISR works on Cloudron's read-only rootfs. `start.sh` runs as
root to chown `/app/data` (localstorage mount), then drops to
`node:node`, applies `prisma migrate deploy`, and execs the Next.js
standalone server.
`node:node`, applies `prisma migrate deploy`, writes the adopted team
Rule, and execs the Next.js standalone server.
### One-time setup (per operator)
@@ -438,7 +438,8 @@ production env vars, and verify the vertical slice before apex cutover
already installed.) Cloudron provisions **postgresql**, **sendmail**, and
**localstorage** addons from the manifest, pulls the image (no registry
credentials needed), and starts the container. `scripts/start.sh` chowns
`/app/data`, runs `prisma migrate deploy`, then execs the Next.js server.
`/app/data`, runs `prisma migrate deploy`, writes the adopted team Rule,
then execs the Next.js server.
4. **Set manual env vars** (Cloudron does not inject these):
```bash
cloudron env set --app staging.communityrule.info \