From 1e3087460f03f9a17220bd4528f6237c42527562 Mon Sep 17 00:00:00 2001 From: Pirate Praveen Date: Sat, 11 Apr 2020 00:46:45 +0530 Subject: [PATCH] Pass NODE_OPTIONS="--max-old-space-size=2048" to webpack to work with nodejs 10 --- debian/control | 2 +- debian/rake-tasks.sh | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/debian/control b/debian/control index e93bd65329..aadf257a9e 100644 --- a/debian/control +++ b/debian/control @@ -30,7 +30,7 @@ Depends: ${shlibs:Depends}, ${misc:Depends}, bc, redis-server (>= 2:2.8~), # See https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=956211 - nodejs (>= 12~), + nodejs (>= 10~), nginx | httpd, default-mta | postfix | exim4 | mail-transport-agent, openssh-client, diff --git a/debian/rake-tasks.sh b/debian/rake-tasks.sh index b425d10114..52f6f06a5c 100755 --- a/debian/rake-tasks.sh +++ b/debian/rake-tasks.sh @@ -48,4 +48,5 @@ runuser -u ${gitlab_user} -- sh -c 'cd /usr/share/gitlab/public/assets && \ ln -s select2-d6b5d8d83dbc18fb8d77c8761d331cd9e5123c9684950bab0406e98a24ac5ae8.png select2.png; fi' echo "Webpacking..." -runuser -u ${gitlab_user} -- sh -c 'webpack --config config/webpack.config.js' +# Workaround for webpack crashing with nodejs 10 - https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=956211 +runuser -u ${gitlab_user} -- sh -c 'NODE_OPTIONS="--max-old-space-size=2048" webpack --max-old-space-size=16384 --config config/webpack.config.js'