absolute node path
This commit is contained in:
parent
b459fe9566
commit
64ce92fb81
3 changed files with 9 additions and 7 deletions
|
@ -7,8 +7,8 @@ Type=simple
|
||||||
User=__APP__
|
User=__APP__
|
||||||
Group=__APP__
|
Group=__APP__
|
||||||
WorkingDirectory=__FINALPATH__/
|
WorkingDirectory=__FINALPATH__/
|
||||||
ExecStart=pm2 start server/server.js -- --port=__PORT__ --name uptime-kuma
|
ExecStart=/usr/local/n/versions/node/14.18.1/bin/pm2 start server/server.js -- --port=__PORT__ --name uptime-kuma
|
||||||
ExecStop=pm2 stop uptime-kuma
|
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
|
||||||
|
|
||||||
|
|
|
@ -8,7 +8,7 @@
|
||||||
# pkg_dependencies="npm git nodejs"
|
# pkg_dependencies="npm git nodejs"
|
||||||
pkg_dependencies=""
|
pkg_dependencies=""
|
||||||
|
|
||||||
nodejs_version=14
|
nodejs_version=14.18.1
|
||||||
|
|
||||||
#=================================================
|
#=================================================
|
||||||
# PERSONAL HELPERS
|
# PERSONAL HELPERS
|
||||||
|
|
|
@ -210,10 +210,12 @@ ynh_add_nginx_config
|
||||||
#=================================================
|
#=================================================
|
||||||
ynh_script_progression --message="Installing Uptime Kuma..." --time --weight=3
|
ynh_script_progression --message="Installing Uptime Kuma..." --time --weight=3
|
||||||
# Install pm2 (may be replaced by adequate systemd conf)
|
# Install pm2 (may be replaced by adequate systemd conf)
|
||||||
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 /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
|
# 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 wget cd $final_path && https://github.com/louislam/uptime-kuma/releases/download/1.10.0/dist.tar.gz
|
# ynh_exec_warn_less ynh_exec_as $app $ynh_node_load_PATH $ynh_npm install
|
||||||
ynh_exec_as $app cd $final_path && tar -xvf dist.tar.gz
|
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 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
|
||||||
|
|
||||||
#=================================================
|
#=================================================
|
||||||
# CREATE DATA DIRECTORY
|
# CREATE DATA DIRECTORY
|
||||||
|
|
Loading…
Add table
Reference in a new issue