From 864d04f02bb998d8349d22b11c8d7051419eef52 Mon Sep 17 00:00:00 2001 From: Krakinou Date: Sat, 26 Nov 2022 17:03:52 +0100 Subject: [PATCH] set space size to 4096 --- scripts/install | 3 ++- scripts/upgrade | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/scripts/install b/scripts/install index f07f112..25a7e17 100755 --- a/scripts/install +++ b/scripts/install @@ -126,7 +126,8 @@ pushd "$final_path" ynh_script_progression --message="Cleaning cache... " --weight=3 ynh_exec_warn_less ynh_exec_as $app env $ynh_node_load_PATH yarn cache clean 2>&1 ynh_script_progression --message="Building Yarn dependencies... This can be very long, be patient !" --weight=30 - ynh_exec_warn_less ynh_exec_as $app env $ynh_node_load_PATH yarn run build + #https://geeklearning.io/angular-aot-webpack-memory-trick/ + ynh_exec_warn_less ynh_exec_as $app env $ynh_node_load_PATH NODE_OPTIONS=--max-old-space-size=4096 yarn run build ynh_script_progression --message="Cleaning cache... " --weight=3 ynh_exec_warn_less ynh_exec_as $app env $ynh_node_load_PATH yarn cache clean 2>&1 popd diff --git a/scripts/upgrade b/scripts/upgrade index 3009b88..a0480c4 100644 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -118,7 +118,8 @@ then ynh_script_progression --message="Cleaning cache... " --weight=3 ynh_exec_warn_less ynh_exec_as $app env $ynh_node_load_PATH yarn cache clean 2>&1 ynh_script_progression --message="Building Yarn dependencies... This can be very long, be patient !" --weight=18 - ynh_exec_warn_less ynh_exec_as $app env $ynh_node_load_PATH yarn run build + #https://geeklearning.io/angular-aot-webpack-memory-trick/ + ynh_exec_warn_less ynh_exec_as $app env $ynh_node_load_PATH NODE_OPTIONS=--max-old-space-size=4096 yarn run build ynh_script_progression --message="Cleaning cache... " --weight=3 ynh_exec_warn_less ynh_exec_as $app env $ynh_node_load_PATH yarn cache clean 2>&1 popd