This commit is contained in:
Éric Gaspar 2023-09-20 21:06:50 +02:00
parent b31c054edf
commit 80d07cb0a9
3 changed files with 3 additions and 2 deletions

View file

@ -8,6 +8,7 @@ Restart=always
User=__APP__
Group=__APP__
WorkingDirectory=__INSTALL_DIR__/
Environment="NODE_ENV=production"
ExecStart=__YNH_NODE__ server/server.js --port=__PORT__
StandardOutput=append:/var/log/__APP__/__APP__.log
StandardError=inherit

View file

@ -53,7 +53,7 @@ ynh_script_progression --message="Installing Uptime Kuma dependencies..." --weig
pushd "$install_dir"
ynh_use_nodejs
ynh_exec_warn_less ynh_exec_as $app $ynh_node_load_PATH $ynh_npm install
ynh_exec_warn_less ynh_exec_as $app $ynh_node_load_PATH $ynh_npm install --production
popd
#=================================================

View file

@ -66,7 +66,7 @@ ynh_script_progression --message="Upgrading Uptime Kuma dependencies..." --weigh
pushd "$install_dir"
ynh_use_nodejs
ynh_exec_warn_less ynh_exec_as $app $ynh_node_load_PATH $ynh_npm install
ynh_exec_warn_less ynh_exec_as $app $ynh_node_load_PATH $ynh_npm install --production
popd
#=================================================