Skip to content

Commit 051f3ad

Browse files
committed
increase available memory for the javascript vm
coder/code-server#7418
1 parent 65ff7f3 commit 051f3ad

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

codeserver/ubi9-python-3.12/get_code_server_rpm.sh

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,21 @@ if [[ "$ARCH" == "amd64" || "$ARCH" == "arm64" ||"$ARCH" == "ppc64le" ]]; then
6363
git submodule update --init
6464
source ${NVM_DIR}/nvm.sh
6565
while IFS= read -r src_patch; do echo "patches/$src_patch"; patch -p1 < "patches/$src_patch"; done < patches/series
66+
patch -p1 <<'EOF'
67+
diff --git i/package.json w/package.json
68+
index 925462fb087..dfff96eb051 100644
69+
--- code-server.orig/lib/vscode/package.json
70+
+++ code-server/lib/vscode/package.json
71+
@@ -25,7 +25,7 @@
72+
"kill-watch-webd": "deemon --kill npm run watch-web",
73+
"restart-watchd": "deemon --restart npm run watch",
74+
"restart-watch-webd": "deemon --restart npm run watch-web",
75+
- "watch-client": "node --max-old-space-size=8192 ./node_modules/gulp/bin/gulp.js watch-client",
76+
+ "watch-client": "node --max-old-space-size=16384 ./node_modules/gulp/bin/gulp.js watch-client",
77+
"watch-clientd": "deemon npm run watch-client",
78+
"kill-watch-clientd": "deemon --kill npm run watch-client",
79+
"watch-extensions": "node --max-old-space-size=8192 ./node_modules/gulp/bin/gulp.js watch-extensions watch-extension-media",
80+
EOF
6681
nvm use ${NODE_VERSION}
6782
npm install
6883
npm run build

0 commit comments

Comments
 (0)