From 14264bd20e6902950b70516906fafcd8437a2057 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?E=CC=81ric=20Gaspar?= <46165813+ericgaspar@users.noreply.github.com> Date: Wed, 13 Dec 2023 21:40:58 +0100 Subject: [PATCH] fix --- conf/systemd.service | 2 +- scripts/install | 3 --- 2 files changed, 1 insertion(+), 4 deletions(-) diff --git a/conf/systemd.service b/conf/systemd.service index 1192172..e5c8a67 100644 --- a/conf/systemd.service +++ b/conf/systemd.service @@ -6,7 +6,7 @@ After=network.target Type=simple User=__APP__ Group=__APP__ -WorkingDirectory=__INSTALL_DIR__/server +WorkingDirectory=__INSTALL_DIR__ Environment="__YNH_NODE_LOAD_PATH__" Environment="NODE_ENV=production" ExecStart=__YNH_NPM__ start --prod diff --git a/scripts/install b/scripts/install index 08cc378..dcf3dbd 100755 --- a/scripts/install +++ b/scripts/install @@ -68,9 +68,6 @@ ynh_script_progression --message="Installing $app..." --weight=10 pushd $install_dir ynh_use_nodejs ynh_exec_warn_less sudo -u $app env $ynh_node_load_PATH $ynh_npm install -popd - -pushd $install_dir/server ynh_exec_warn_less sudo -u $app env $ynh_node_load_PATH $ynh_npm run db:init popd