mirror of
https://github.com/YunoHost-Apps/kresus_ynh.git
synced 2024-09-03 19:36:10 +02:00
Raise timeout duration for Yarn (helps with slow hardware)
This commit is contained in:
parent
c4a7e44fe1
commit
b0ec8cc632
2 changed files with 2 additions and 0 deletions
|
@ -87,6 +87,7 @@ ynh_script_progression --message="Installing $app..." --weight=1
|
|||
|
||||
pushd $install_dir
|
||||
ynh_use_nodejs
|
||||
ynh_exec_warn_less ynh_exec_as $app env $ynh_node_load_PATH yarn config set network-timeout 300000
|
||||
ynh_exec_warn_less ynh_exec_as $app env $ynh_node_load_PATH yarn install
|
||||
ynh_exec_warn_less ynh_exec_as $app env $ynh_node_load_PATH yarn cache clean --all
|
||||
ynh_secure_remove --file="$install_dir/.cache"
|
||||
|
|
|
@ -119,6 +119,7 @@ pushd $install_dir
|
|||
# linked to modules compiled for the previous version.
|
||||
ynh_secure_remove --file="$install_dir/node_modules"
|
||||
|
||||
ynh_exec_warn_less ynh_exec_as $app env $ynh_node_load_PATH yarn config set network-timeout 300000
|
||||
ynh_exec_warn_less ynh_exec_as $app env $ynh_node_load_PATH yarn install --production
|
||||
ynh_exec_warn_less ynh_exec_as $app env $ynh_node_load_PATH yarn cache clean --all
|
||||
ynh_secure_remove --file="$install_dir/.cache"
|
||||
|
|
Loading…
Add table
Reference in a new issue