From eae1e8fcd56c06824566eefe76d3ef09915a1e3b Mon Sep 17 00:00:00 2001 From: Limezy Date: Sat, 18 Feb 2023 23:16:50 +0700 Subject: [PATCH] Update install --- scripts/install | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/scripts/install b/scripts/install index 45cd05d..2c2ce2d 100755 --- a/scripts/install +++ b/scripts/install @@ -217,12 +217,14 @@ ynh_add_nginx_config pushd "$final_path" ynh_use_nodejs + ynh_exec_warn_less sudo -u $app env $ynh_node_load_PATH node -e 'console.log(v8.getHeapStatistics().heap_size_limit/(1024*1024))' + ynh_exec_warn_less sudo -u $app env $ynh_node_load_PATH node --max_old_space_size=2500 -e 'console.log(v8.getHeapStatistics().heap_size_limit/(1024*1024))' ynh_script_progression --message="Fetching Yarn production dependencies... This can be very long, be patient !" --weight=18 - ynh_exec_warn_less sudo -u $app env $ynh_node_load_PATH yarn install --frozen-lockfile --network-timeout 1000000000 2>&1 + ynh_exec_warn_less sudo -u $app env $ynh_node_load_PATH yarn install --max_old_space_size=2500 --frozen-lockfile --network-timeout 1000000000 2>&1 ynh_script_progression --message="Cleaning cache... " --weight=3 ynh_exec_warn_less sudo -u $app env $ynh_node_load_PATH yarn cache clean 2>&1 ynh_script_progression --message="Building... This can be very long, be patient !" --weight=18 - ynh_exec_warn_less sudo -u $app env $ynh_node_load_PATH yarn build 2>&1 + ynh_exec_warn_less sudo -u $app env $ynh_node_load_PATH yarn build --max_old_space_size=2500 2>&1 popd #=================================================