diff --git a/conf/systemd.service b/conf/systemd.service index 51357a2..162feb4 100644 --- a/conf/systemd.service +++ b/conf/systemd.service @@ -6,7 +6,7 @@ Type=simple User=__APP__ Group=__APP__ WorkingDirectory=__FINALPATH__ -Environment="PATH=__ENV_PATH__" +Environment=__YNH_NODE_LOAD_PATH__ Environment="NODE_ENV=production" ExecStart=__YNH_NPM__ start TimeoutSec=60 diff --git a/scripts/install b/scripts/install index aa425da..49f3079 100755 --- a/scripts/install +++ b/scripts/install @@ -131,9 +131,6 @@ ynh_system_user_create --username=$app #================================================= ynh_script_progression --message="Configuring a systemd service..." -ynh_replace_string --match_string="__ENV_PATH__" --replace_string="$PATH" --target_file="../conf/systemd.service" -ynh_replace_string --match_string="__YNH_NPM__" --replace_string="$ynh_npm" --target_file="../conf/systemd.service" - # Create a dedicated systemd config ynh_add_systemd_config