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