diff --git a/scripts/install b/scripts/install index 25a7e17..0f83ce6 100755 --- a/scripts/install +++ b/scripts/install @@ -127,7 +127,7 @@ pushd "$final_path" 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 #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_exec_warn_less ynh_exec_as $app env $ynh_node_load_PATH NODE_OPTIONS=--max-old-space-size=2048 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 a0480c4..67f6baf 100644 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -119,7 +119,7 @@ then 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 #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_exec_warn_less ynh_exec_as $app env $ynh_node_load_PATH NODE_OPTIONS=--max-old-space-size=2048 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