From 86c094130a0e463c4fb42f44269aae20a605cd92 Mon Sep 17 00:00:00 2001 From: Rafi59 Date: Tue, 6 Nov 2018 19:46:13 +0100 Subject: [PATCH] [fix] Systemd service --- conf/systemd.service | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/conf/systemd.service b/conf/systemd.service index 5f61256..0f69cd6 100644 --- a/conf/systemd.service +++ b/conf/systemd.service @@ -8,7 +8,8 @@ WorkingDirectory=__FINALPATH__ User=__APP__ Group=__APP__ Environment="NODE_ENV=production" -ExecStart=/usr/bin/node index.js run +Environment="PATH=__ENV_PATH__" +ExecStart=__NODE__/node index.js run Restart=always [Install]