2020-11-13 10:54:35 +01:00
|
|
|
# Please customize values i.e. paths, user, group, WorkingDirectory based on your environment. Do not use the same
|
|
|
|
# user and group for different applications.
|
|
|
|
|
2020-06-14 21:51:26 +02:00
|
|
|
[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
|