From 3293dada904cdfc89b3839fb55a87449092a4a83 Mon Sep 17 00:00:00 2001 From: Yalh Date: Tue, 29 Jan 2019 07:35:06 +0100 Subject: [PATCH] Fix Service --- conf/systemd.service | 2 +- scripts/install | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/conf/systemd.service b/conf/systemd.service index e4792b4..378fb19 100644 --- a/conf/systemd.service +++ b/conf/systemd.service @@ -6,7 +6,7 @@ After=network.target Type=simple User=__APP__ Group=__APP__ -Environment="PATH=__ENV_PATH__" +Environment="PATH=__NODEJS_PATH__" WorkingDirectory=__FINALPATH__/ ExecStart=__FINALPATH__/node_modules/.bin/ts-node --project __FINALPATH__/tsconfig.json __FINALPATH__/bin/server.ts >> /var/log/__APP__/__APP__.log 2>&1 diff --git a/scripts/install b/scripts/install index 8495d70..1263b71 100644 --- a/scripts/install +++ b/scripts/install @@ -203,7 +203,7 @@ ynh_replace_string "res.writeHead(200)" "res.writeHead(200, {\"content-type\": \ ### - And the section "SETUP SYSTEMD" in the upgrade script # Create a dedicated systemd config -ynh_replace_string "__ENV_PATH__" "$nodejs_path" "../conf/systemd.service" +ynh_replace_string "__NODEJS_PATH__" "$nodejs_path" "../conf/systemd.service" ynh_add_systemd_config systemctl start $app