Add systemd unit file
This commit is contained in:
parent
a968cf8408
commit
e84f45b812
16
app.service
Normal file
16
app.service
Normal file
@ -0,0 +1,16 @@
|
||||
[Unit]
|
||||
Description=ily.li website
|
||||
After=network-online.target
|
||||
Wants=network-online.target
|
||||
|
||||
[Service]
|
||||
Type=simple
|
||||
User=ilyli
|
||||
Group=ilyli
|
||||
WorkingDirectory=/home/ilyli/live
|
||||
Restart=on-success
|
||||
Environment=NODE_ENV=production
|
||||
ExecStart=/bin/node .
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
Loading…
Reference in New Issue
Block a user