From e95b427512f8e298a77ab56ef28aa65400f6ff81 Mon Sep 17 00:00:00 2001 From: Alice Gaudon Date: Sun, 14 Jun 2020 21:51:26 +0200 Subject: [PATCH] Add systemd unit file --- app.service | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 app.service diff --git a/app.service b/app.service new file mode 100644 index 0000000..32f2b99 --- /dev/null +++ b/app.service @@ -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