diff --git a/app.service b/app.service new file mode 100644 index 0000000..d303c75 --- /dev/null +++ b/app.service @@ -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