From 1a6a57084ee405f22624aa7a887123bfcc992bd9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?E=CC=81ric=20Gaspar?= <46165813+ericgaspar@users.noreply.github.com> Date: Sat, 20 May 2023 20:38:10 +0200 Subject: [PATCH] fix --- conf/systemd.service | 2 +- scripts/install | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/conf/systemd.service b/conf/systemd.service index c9e4dc1..3193880 100644 --- a/conf/systemd.service +++ b/conf/systemd.service @@ -8,7 +8,7 @@ User=__APP__ Group=__APP__ WorkingDirectory=__INSTALL_DIR__/ Environment="NODE_ENV=production" -#Environment="__YNH_NODE_LOAD_PATH__" +Environment="__YNH_NODE_LOAD_PATH__" ExecStart=__YNH_NODE__ __INSTALL_DIR__/server/bin/prod.js Restart=always diff --git a/scripts/install b/scripts/install index dee5c22..86d93e2 100644 --- a/scripts/install +++ b/scripts/install @@ -73,6 +73,7 @@ chown $app: "$install_dir/server/config.js" #================================================= ynh_script_progression --message="Configuring a systemd service..." --weight=1 +env_path="$PATH" # Create a dedicated systemd config ynh_add_systemd_config