Add systemd unit file

This commit is contained in:
Alice Gaudon 2020-06-14 21:51:26 +02:00
parent a968cf8408
commit e84f45b812

16
app.service Normal file
View 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