This commit is contained in:
Éric Gaspar 2023-05-20 20:38:10 +02:00
parent e625a5bf7a
commit 1a6a57084e
2 changed files with 2 additions and 1 deletions

View File

@ -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

View File

@ -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