innercontext/systemd/innercontext-node.service
Piotr Oleszczyk a2500a919b docs: update Node.js to 24 LTS, switch to nvm + corepack
- Use nvm v0.40.4 + nvm install 24 (24.14.0 LTS) instead of nodesource
- Use corepack enable pnpm instead of npm install -g pnpm
- Add symlink step: ln -sf \$(nvm which current) /usr/local/bin/node so
  systemd service can reference a stable path
- Update ExecStart in innercontext-node.service: /usr/bin → /usr/local/bin
- Update Node.js version references in README.md (22 → 24 LTS)

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-02-28 20:24:38 +01:00

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