Add systemd unit file

This commit is contained in:
Alice Gaudon 2020-06-14 21:51:26 +02:00
parent 243f87b0bf
commit e95b427512

16
app.service Normal file
View File

@ -0,0 +1,16 @@
[Unit]
Description=WMS website
After=network-online.target
Wants=network-online.target
[Service]
Type=simple
User=wms
Group=wms
WorkingDirectory=/home/wms/live
Restart=on-success
Environment=NODE_ENV=production
ExecStart=/bin/node .
[Install]
WantedBy=multi-user.target