From fef2c26cbec4853cb356782ecd2f30b44c65659e Mon Sep 17 00:00:00 2001 From: Tamius Han Date: Mon, 7 Jun 2021 20:34:27 +0200 Subject: [PATCH] raise RAM, second attempt --- scripts/build-all.sh | 3 +++ scripts/build-and-deploy.sh | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/scripts/build-all.sh b/scripts/build-all.sh index fbd981f..618d3f3 100644 --- a/scripts/build-all.sh +++ b/scripts/build-all.sh @@ -10,6 +10,9 @@ npm run pre-build rm ./dist-zip/uw-amo-source.zip mv -f ./dist-zip/*.zip ./build/old +# lets force raise ram limit, but the improper way +# export NODE_OPTIONS=--max_old_space_size=4096 + # build the version for each browser and create a zip afterwards # step 1: define build functions #function buildFF { diff --git a/scripts/build-and-deploy.sh b/scripts/build-and-deploy.sh index 75377e8..d5f2c99 100755 --- a/scripts/build-and-deploy.sh +++ b/scripts/build-and-deploy.sh @@ -38,7 +38,7 @@ if [ ! -z "$GIT_COMMIT" ] ; then fi # let's raise RAM limit for npm command globally -alias npm='node --max_old_space_size=2048 /usr/bin/npm' +NODE_OPTIONS=--max_old_space_size=4096 npm ci