- 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>
18 lines
431 B
Desktop File
18 lines
431 B
Desktop File
[Unit]
|
|
Description=innercontext SvelteKit Node frontend
|
|
After=network.target
|
|
|
|
[Service]
|
|
Type=simple
|
|
User=innercontext
|
|
Group=innercontext
|
|
WorkingDirectory=/opt/innercontext/frontend
|
|
Environment=PORT=3000
|
|
Environment=HOST=127.0.0.1
|
|
EnvironmentFile=/opt/innercontext/frontend/.env.production
|
|
ExecStart=/usr/local/bin/node /opt/innercontext/frontend/build/index.js
|
|
Restart=on-failure
|
|
RestartSec=5
|
|
|
|
[Install]
|
|
WantedBy=multi-user.target
|