Add systemd unit file
This commit is contained in:
parent
243f87b0bf
commit
e95b427512
16
app.service
Normal file
16
app.service
Normal 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
|
Loading…
Reference in New Issue
Block a user