mirror of
https://github.com/sbrl/Minetest-WorldEditAdditions.git
synced 2025-03-29 03:52:31 +01:00
build: limit image processing to 2 processes at a time
....resizing 10 images at once is not going to end well on a raspberry pi
This commit is contained in:
1
build.sh
1
build.sh
@ -94,6 +94,7 @@ log_msg "Building website";
|
|||||||
# This causes the eleventy docs site to minify stuff
|
# This causes the eleventy docs site to minify stuff
|
||||||
# Note that this is NOT before the npm install, as npm doesn't install everything if we do that
|
# Note that this is NOT before the npm install, as npm doesn't install everything if we do that
|
||||||
export NODE_ENV=production;
|
export NODE_ENV=production;
|
||||||
|
export MAX_CONCURRENT=2; # Resizing 10 images at once is not going to end well on a raspberry pi
|
||||||
npm run build;
|
npm run build;
|
||||||
|
|
||||||
if [[ ! -d "_site" ]]; then
|
if [[ ! -d "_site" ]]; then
|
||||||
|
Reference in New Issue
Block a user