Repository navigation
docs(self-host): measured requirements and resource usage, API .env caveat, local Postgres on 127.0.0.1 - #828
Merged
Conversation
…eat; bind local Postgres to 127.0.0.1
Merged
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What
apps/api/.envitself. WithNODE_ENV=productionset only in.env,pnpm --filter api startskipped the migrate-before-listen step: no[api] prisma migrate deployline was logged, while Prisma loaded the rest of.envlater, so CORS etc. were still in production mode. Withnode --env-file=.env dist/index.jsthe step ran. The docs page previously said it "applies migrations before it listens" unconditionally.pnpm --filter … startleaves a residentpnpmprocess (106 MiB RSS each, measured) next to each server. The docs now show how to start the servers directly.version: "3", which printed a warning on everydocker composecommand with Compose v2, and binds Postgres to127.0.0.1:5432, because it ships with the passwordpostgres.How it was measured
v1.22.6, fresh clone, cold pnpm store and cold Docker state. Box: 8 vCPU Xeon, 15.6 GiB, Debian 13, Docker 26.1.5, Node 20.19.2. RSS and PSS came from
/proc/<pid>/smaps_rollup, and Postgres fromdocker stats --no-stream, sampled every 10 s for 5 min idle (after a 5 min settle), 12 min under load, and 5 min after. The workload was 2,160 events, 360 errors with stack traces and 72 sessions over 12 min, plus 72 authenticated dashboard SSR loads. Every ingest returned 204.Checks
docker compose config -qis valid, eslint on the page passes, and dashboard vitest is 355/355.tschas the same 6 pre-existing test-file errors asdevelop.Ships with the next patch release. No release is cut here.