mirror of
https://github.com/YunoHost-Apps/lingva_ynh.git
synced 2024-09-03 19:36:20 +02:00
perbaiki nodejs
This commit is contained in:
parent
27f549abd9
commit
3c73c3c31d
4 changed files with 9 additions and 6 deletions
|
@ -4,6 +4,8 @@
|
|||
# COMMON VARIABLES
|
||||
#=================================================
|
||||
|
||||
nodejs_version=18.16.0
|
||||
|
||||
#=================================================
|
||||
# PERSONAL HELPERS
|
||||
#=================================================
|
||||
|
|
|
@ -42,9 +42,9 @@ fi
|
|||
ynh_script_progression --message="Rebuilding the app..." --weight=1
|
||||
|
||||
ynh_use_nodejs
|
||||
ynh_exec_as $app $ynh_npm install
|
||||
ynh_exec_warn_less ynh_exec_as $app $ynh_node_load_PATH $ynh_npm install
|
||||
npx next telemetry disable
|
||||
ynh_exec_as $app $ynh_npm build
|
||||
ynh_exec_warn_less ynh_exec_as $app $ynh_node_load_PATH $ynh_npm build
|
||||
|
||||
#=================================================
|
||||
# GENERIC FINALISATION
|
||||
|
|
|
@ -55,10 +55,11 @@ chown $app:$app "$install_dir/.env.local"
|
|||
#=================================================
|
||||
ynh_script_progression --message="Building the app..." --weight=1
|
||||
|
||||
ynh_install_nodejs --nodejs_version=18.16.0
|
||||
ynh_use_nodejs
|
||||
ynh_exec_as $app $ynh_npm install
|
||||
ynh_exec_warn_less ynh_exec_as $app $ynh_node_load_PATH $ynh_npm install
|
||||
npx next telemetry disable
|
||||
ynh_exec_as $app $ynh_npm build
|
||||
ynh_exec_warn_less ynh_exec_as $app $ynh_node_load_PATH $ynh_npm build
|
||||
|
||||
#=================================================
|
||||
# GENERIC FINALIZATION
|
||||
|
|
|
@ -117,9 +117,9 @@ chown $app:$app "$install_dir/.env.local"
|
|||
ynh_script_progression --message="Rebuilding the app..." --weight=1
|
||||
|
||||
ynh_use_nodejs
|
||||
ynh_exec_as $app $ynh_npm install
|
||||
ynh_exec_warn_less ynh_exec_as $app $ynh_node_load_PATH $ynh_npm install
|
||||
npx next telemetry disable
|
||||
ynh_exec_as $app $ynh_npm build
|
||||
ynh_exec_warn_less ynh_exec_as $app $ynh_node_load_PATH $ynh_npm build
|
||||
|
||||
#=================================================
|
||||
# START SYSTEMD SERVICE
|
||||
|
|
Loading…
Reference in a new issue