disable pm2
This commit is contained in:
parent
64ce92fb81
commit
956dcb1569
2 changed files with 3 additions and 6 deletions
|
@ -7,8 +7,7 @@ Type=simple
|
||||||
User=__APP__
|
User=__APP__
|
||||||
Group=__APP__
|
Group=__APP__
|
||||||
WorkingDirectory=__FINALPATH__/
|
WorkingDirectory=__FINALPATH__/
|
||||||
ExecStart=/usr/local/n/versions/node/14.18.1/bin/pm2 start server/server.js -- --port=__PORT__ --name uptime-kuma
|
ExecStart=/usr/local/n/versions/node/14.18.1/bin/node server/server.js
|
||||||
ExecStop=/usr/local/n/versions/node/14.18.1/bin/pm2 stop uptime-kuma
|
|
||||||
StandardOutput=append:/var/log/__APP__/__APP__.log
|
StandardOutput=append:/var/log/__APP__/__APP__.log
|
||||||
StandardError=inherit
|
StandardError=inherit
|
||||||
|
|
||||||
|
|
|
@ -208,12 +208,10 @@ ynh_add_nginx_config
|
||||||
#=================================================
|
#=================================================
|
||||||
# SPECIFIC SETUP
|
# SPECIFIC SETUP
|
||||||
#=================================================
|
#=================================================
|
||||||
ynh_script_progression --message="Installing Uptime Kuma..." --time --weight=3
|
ynh_script_progression --message="Installing Uptime Kuma npm dependencies..." --time --weight=5
|
||||||
# Install pm2 (may be replaced by adequate systemd conf)
|
|
||||||
ynh_exec_warn_less ynh_exec_as $app /usr/local/n/versions/node/14.18.1/bin/npm install pm2 -g
|
|
||||||
# ynh_exec_warn_less ynh_exec_as $app $ynh_node_load_PATH $ynh_npm install pm2 -g
|
|
||||||
# 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
|
||||||
ynh_exec_warn_less ynh_exec_as $app /usr/local/n/versions/node/14.18.1/bin/npm install
|
ynh_exec_warn_less ynh_exec_as $app /usr/local/n/versions/node/14.18.1/bin/npm install
|
||||||
|
ynh_script_progression --message="Downloading Uptime Kuma frontend..." --time --weight=1
|
||||||
ynh_exec_warn_less ynh_exec_as $app wget https://github.com/louislam/uptime-kuma/releases/download/1.10.0/dist.tar.gz
|
ynh_exec_warn_less ynh_exec_as $app wget https://github.com/louislam/uptime-kuma/releases/download/1.10.0/dist.tar.gz
|
||||||
ynh_exec_as $app tar -xvf dist.tar.gz $final_path
|
ynh_exec_as $app tar -xvf dist.tar.gz $final_path
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue