hypertwist/website/deploy/systemd/hypertwist-website-auth-server.service.example
2026-06-22 06:50:15 +00:00

22 lines
503 B
Text

[Unit]
Description=HyperTwist same-origin website and auth server
After=network-online.target
Wants=network-online.target
[Service]
Type=simple
User=hypertwist
Group=hypertwist
WorkingDirectory=/srv/hypertwist/current/website/server
Environment=NODE_ENV=production
EnvironmentFile=/srv/hypertwist/current/website/server/.env
ExecStart=/usr/bin/npm start
Restart=always
RestartSec=5
TimeoutStopSec=20
KillSignal=SIGTERM
StandardOutput=journal
StandardError=journal
[Install]
WantedBy=multi-user.target