From 9488e76cf0645a40fb823fce620663f9f860093b Mon Sep 17 00:00:00 2001 From: yalh76 Date: Fri, 16 Oct 2020 19:34:41 +0200 Subject: [PATCH] adjust the maximum memory used --- scripts/install | 2 +- scripts/upgrade | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/install b/scripts/install index 4b73a61..c930926 100644 --- a/scripts/install +++ b/scripts/install @@ -146,7 +146,7 @@ config="$final_path/$app/config/prod.secret.exs" pushd $final_path/$app/js ynh_use_nodejs sudo -u $app env PATH=$PATH yarn install - sudo -u $app env PATH=$PATH yarn run build + sudo -u $app env PATH=$PATH NODE_BUILD_MEMORY=1024 yarn run build popd pushd $final_path/$app diff --git a/scripts/upgrade b/scripts/upgrade index 491432a..a26e33d 100644 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -173,7 +173,7 @@ chown -R "$app":"$app" "$final_path" pushd $final_path/$app/js ynh_use_nodejs sudo -u $app env PATH=$PATH yarn install - sudo -u $app env PATH=$PATH yarn run build + sudo -u $app env PATH=$PATH NODE_BUILD_MEMORY=1024 yarn run build popd pushd $final_path/$app