From 1d6b45c7b47bfb9fd86c8c369362b6a1b34e811c Mon Sep 17 00:00:00 2001 From: Fabian Wilkens Date: Sat, 14 Aug 2021 20:21:08 +0200 Subject: [PATCH] Fix: upgrade - JavaScript heap out of memory --- scripts/upgrade | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/scripts/upgrade b/scripts/upgrade index 266e0df..4efee1f 100755 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -402,24 +402,24 @@ then if [[ "$syncing_server_js_version_installed" < "$syncing_server_js_version" ]] then pushd "$final_path/live/syncing-server-js" - 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 ynh_app_setting_set --app=$app --key=syncing_server_js_version --value=$syncing_server_js_version fi if [[ "$auth_version_installed" < "$auth_version" ]] then pushd "$final_path/live/auth" - 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 ynh_app_setting_set --app=$app --key=auth_version --value=$auth_version fi if [[ "$api_gateway_version_installed" < "$api_gateway_version" ]] then pushd "$final_path/live/api-gateway" - 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 ynh_app_setting_set --app=$app --key=api_gateway_version --value=$api_gateway_version fi