Skip to content

Commit

Permalink
Deploy: Reduce memory usage on <520Mb devices
Browse files Browse the repository at this point in the history
  • Loading branch information
stephendade committed Jan 22, 2025
1 parent cdd6bb3 commit 13a0766
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions deploy/build_rpanion.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ set -x

cd ../

# If less than 500Mb RAM, need to tell NodeJS to reduce memory usage during build
if [ $(free -m | awk '/^Mem:/{print $2}') -le 500 ]; then
# If less than 520Mb RAM, need to tell NodeJS to reduce memory usage during build
if [ $(free -m | awk '/^Mem:/{print $2}') -le 520 ]; then
export NODE_OPTIONS="--max-old-space-size=256"
fi

Expand Down

0 comments on commit 13a0766

Please sign in to comment.