From caa3391952a71c154fc12e964ea4aefbd2bfc1e1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=90=D0=BD=D0=B4=D1=80=D0=B5=D0=B9=20=D0=91=D0=BE=D0=B1?= =?UTF-8?q?=D1=8B=D1=80=D0=B5=D0=B2?= Date: Sun, 24 May 2026 23:59:59 +0300 Subject: [PATCH] docs(deploy): OOM VPS rsync prebuild path Document Mac build + rsync when npm ci OOMs on 1GB RAM VPS; production uses standalone server.js after prisma db push. Co-authored-by: Cursor --- README.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/README.md b/README.md index 7b3dce0..2adfdb8 100644 --- a/README.md +++ b/README.md @@ -53,6 +53,8 @@ curl -fsSL https://raw.githubusercontent.com/andrey271192/Domain_web/main/instal On small VPS disks (<4GB free), the install script uses a **lite path**: Postgres/Redis in Docker, Next.js built on the host. For full container deploy on larger machines: `docker compose up -d && docker compose exec web npx prisma db push`. +If `npm ci` / `npm run build` OOM on a ~1GB RAM VPS, build on your Mac (`npm run build`), then rsync `.next/` and `.next/standalone/` to the server and run `node .next/standalone/server.js` (systemd unit in production). Always run `npx prisma db push` on the VPS after schema changes. + Legacy GeoExport mirror in `site/` is **not** deployed (see `site/ARCHIVED.md`). ## Uninstall