[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
