From 5ceac8e51e18001d9e1dae698ff45f6e8817258b Mon Sep 17 00:00:00 2001 From: Fabian Wilkens Date: Sat, 14 Aug 2021 19:31:20 +0200 Subject: [PATCH] Fix: install - JavaScript heap out of memory --- scripts/install | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/scripts/install b/scripts/install index 114667b..3b023df 100755 --- a/scripts/install +++ b/scripts/install @@ -200,18 +200,18 @@ ynh_script_progression --message="Installing Standard Notes - Syncing Server..." ynh_use_nodejs pushd "$final_path/live/syncing-server-js" ynh_print_info "Installing ... [1/3]" - ynh_exec_as $app env PATH=$ynh_node_load_PATH yarn install --pure-lockfile - ynh_exec_as $app env PATH=$ynh_node_load_PATH yarn build + ynh_exec_as $app env NODE_OPTIONS="--max-old-space-size=4096" PATH=$ynh_node_load_PATH yarn install --pure-lockfile + ynh_exec_as $app env NODE_OPTIONS="--max-old-space-size=4096" PATH=$ynh_node_load_PATH yarn build popd pushd "$final_path/live/auth" ynh_print_info "Installing ... [2/3]" - ynh_exec_as $app env PATH=$ynh_node_load_PATH yarn install --pure-lockfile - ynh_exec_as $app env PATH=$ynh_node_load_PATH yarn build + ynh_exec_as $app env NODE_OPTIONS="--max-old-space-size=4096" PATH=$ynh_node_load_PATH yarn install --pure-lockfile + ynh_exec_as $app env NODE_OPTIONS="--max-old-space-size=4096" PATH=$ynh_node_load_PATH yarn build popd pushd "$final_path/live/api-gateway" ynh_print_info "Installing ... [3/3]" - ynh_exec_as $app env PATH=$ynh_node_load_PATH yarn install --pure-lockfile - ynh_exec_as $app env PATH=$ynh_node_load_PATH yarn build + ynh_exec_as $app env NODE_OPTIONS="--max-old-space-size=4096" PATH=$ynh_node_load_PATH yarn install --pure-lockfile + ynh_exec_as $app env NODE_OPTIONS="--max-old-space-size=4096" PATH=$ynh_node_load_PATH yarn build popd #================================================= # INSTALLING Standard Notes - Extensions