fix(docs): correct Debian 13 deployment steps

- Switch to Node.js 24 LTS via nvm
- Install uv to /usr/local/bin via UV_INSTALL_DIR for system-wide access
- Install pnpm as standalone binary from GitHub releases (not corepack
  shim which breaks when copied out of its nvm directory)
- Add libpq5 to apt deps (psycopg3 requires libpq at runtime)
- Add GEMINI_API_KEY and GEMINI_MODEL to backend .env template
- Add ORIGIN to frontend .env.production (SvelteKit CSRF protection)

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
Piotr Oleszczyk 2026-02-28 20:24:38 +01:00
parent 3c1dcbeb06
commit d62812274b
3 changed files with 32 additions and 9 deletions

View file

@ -10,7 +10,7 @@ WorkingDirectory=/opt/innercontext/frontend
Environment=PORT=3000
Environment=HOST=127.0.0.1
EnvironmentFile=/opt/innercontext/frontend/.env.production
ExecStart=/usr/bin/node /opt/innercontext/frontend/build/index.js
ExecStart=/usr/local/bin/node /opt/innercontext/frontend/build/index.js
Restart=on-failure
RestartSec=5