fix: increase Node.js memory limit during build process for BunkerM and Colanode
This commit is contained in:
@@ -43,8 +43,10 @@ function update_script() {
|
|||||||
|
|
||||||
msg_info "Rebuilding Frontend"
|
msg_info "Rebuilding Frontend"
|
||||||
cd /opt/bunkerm/frontend
|
cd /opt/bunkerm/frontend
|
||||||
$STD npm ci
|
export NODE_OPTIONS="--max-old-space-size=4096"
|
||||||
|
$STD npm install
|
||||||
$STD npm run build
|
$STD npm run build
|
||||||
|
unset NODE_OPTIONS
|
||||||
mkdir -p /nextjs
|
mkdir -p /nextjs
|
||||||
cp -r /opt/bunkerm/frontend/.next/standalone/. /nextjs/
|
cp -r /opt/bunkerm/frontend/.next/standalone/. /nextjs/
|
||||||
cp -r /opt/bunkerm/frontend/.next/static /nextjs/.next/static
|
cp -r /opt/bunkerm/frontend/.next/static /nextjs/.next/static
|
||||||
|
|||||||
@@ -42,7 +42,8 @@ function update_script() {
|
|||||||
|
|
||||||
msg_info "Rebuilding Application"
|
msg_info "Rebuilding Application"
|
||||||
cd /opt/colanode
|
cd /opt/colanode
|
||||||
$STD npm ci
|
export NODE_OPTIONS="--max-old-space-size=4096"
|
||||||
|
$STD npm install
|
||||||
$STD npm run build -w @colanode/core
|
$STD npm run build -w @colanode/core
|
||||||
$STD npm run build -w @colanode/crdt
|
$STD npm run build -w @colanode/crdt
|
||||||
$STD npm run build -w @colanode/server
|
$STD npm run build -w @colanode/server
|
||||||
@@ -50,6 +51,8 @@ function update_script() {
|
|||||||
$STD npm run build -w @colanode/ui
|
$STD npm run build -w @colanode/ui
|
||||||
$STD npm run build -w @colanode/web
|
$STD npm run build -w @colanode/web
|
||||||
cp -r /opt/colanode/apps/web/dist/. /var/www/colanode/
|
cp -r /opt/colanode/apps/web/dist/. /var/www/colanode/
|
||||||
|
$STD npm prune --production
|
||||||
|
unset NODE_OPTIONS
|
||||||
msg_ok "Rebuilt Application"
|
msg_ok "Rebuilt Application"
|
||||||
|
|
||||||
msg_info "Restoring Data"
|
msg_info "Restoring Data"
|
||||||
|
|||||||
@@ -79,8 +79,10 @@ msg_ok "Set up Python Environment"
|
|||||||
|
|
||||||
msg_info "Building Frontend"
|
msg_info "Building Frontend"
|
||||||
cd /opt/bunkerm/frontend
|
cd /opt/bunkerm/frontend
|
||||||
AUTH_SECRET="build-time-placeholder" NEXT_TELEMETRY_DISABLED=1 $STD npm ci
|
export NODE_OPTIONS="--max-old-space-size=4096"
|
||||||
|
AUTH_SECRET="build-time-placeholder" NEXT_TELEMETRY_DISABLED=1 $STD npm install
|
||||||
AUTH_SECRET="build-time-placeholder" NEXT_TELEMETRY_DISABLED=1 $STD npm run build
|
AUTH_SECRET="build-time-placeholder" NEXT_TELEMETRY_DISABLED=1 $STD npm run build
|
||||||
|
unset NODE_OPTIONS
|
||||||
mkdir -p /nextjs
|
mkdir -p /nextjs
|
||||||
cp -r /opt/bunkerm/frontend/.next/standalone/. /nextjs/
|
cp -r /opt/bunkerm/frontend/.next/standalone/. /nextjs/
|
||||||
cp -r /opt/bunkerm/frontend/.next/static /nextjs/.next/static
|
cp -r /opt/bunkerm/frontend/.next/static /nextjs/.next/static
|
||||||
|
|||||||
@@ -28,7 +28,8 @@ fetch_and_deploy_gh_release "colanode" "colanode/colanode" "tarball"
|
|||||||
|
|
||||||
msg_info "Building Application"
|
msg_info "Building Application"
|
||||||
cd /opt/colanode
|
cd /opt/colanode
|
||||||
$STD npm ci
|
export NODE_OPTIONS="--max-old-space-size=4096"
|
||||||
|
$STD npm install
|
||||||
$STD npm run build -w @colanode/core
|
$STD npm run build -w @colanode/core
|
||||||
$STD npm run build -w @colanode/crdt
|
$STD npm run build -w @colanode/crdt
|
||||||
$STD npm run build -w @colanode/server
|
$STD npm run build -w @colanode/server
|
||||||
@@ -36,6 +37,7 @@ $STD npm run build -w @colanode/client
|
|||||||
$STD npm run build -w @colanode/ui
|
$STD npm run build -w @colanode/ui
|
||||||
$STD npm run build -w @colanode/web
|
$STD npm run build -w @colanode/web
|
||||||
$STD npm prune --production
|
$STD npm prune --production
|
||||||
|
unset NODE_OPTIONS
|
||||||
msg_ok "Built Application"
|
msg_ok "Built Application"
|
||||||
|
|
||||||
msg_info "Configuring Application"
|
msg_info "Configuring Application"
|
||||||
|
|||||||
Reference in New Issue
Block a user