From 29283fa641e2f08718f850b296397c5ae58595b0 Mon Sep 17 00:00:00 2001 From: denis Date: Fri, 15 Nov 2024 12:16:59 -0500 Subject: [PATCH] Update conf/systemd.service --- conf/systemd.service | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/conf/systemd.service b/conf/systemd.service index 92031a1..76e912b 100644 --- a/conf/systemd.service +++ b/conf/systemd.service @@ -7,7 +7,11 @@ Type=simple User=__APP__ Group=__APP__ WorkingDirectory=__INSTALL_DIR__/ +Environment=PATH=__YNH_NODE_LOAD_PATH__ +Environment="NODE_ENV=production" ExecStart=yarn start +Restart=always +RestartSec=5 StandardOutput=append:/var/log/__APP__/__APP__.log StandardError=inherit