Files
HoruxDespachos/deploy/systemd/horux-api.service
Horux Dev 86c04159b0 fix(deploy): point systemd services to correct repo and use pnpm start
- Update WorkingDirectory from /root/Horux to /root/HoruxDespachos
- Change ExecStart from pnpm dev to pnpm start (production mode)
- Prevents duplicate processes and dev-mode file watching in production
2026-04-30 02:52:43 +00:00

18 lines
398 B
Desktop File

[Unit]
Description=Horux360 API Server
After=network.target postgresql.service
Wants=postgresql.service
[Service]
Type=simple
User=root
WorkingDirectory=/root/HoruxDespachos/apps/api
Environment=NODE_ENV=production
Environment=PATH=/root/.local/share/pnpm:/usr/local/bin:/usr/bin:/bin
ExecStart=/root/.local/share/pnpm/pnpm start
Restart=always
RestartSec=10
[Install]
WantedBy=multi-user.target