From 9d95c466b0c26f8cecc3ff6d8a30d608e7a6cf88 Mon Sep 17 00:00:00 2001 From: vv221 Date: Sun, 12 Apr 2020 10:16:22 +0200 Subject: [PATCH] Build assets generated by webpack in production mode Fix https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=956508 Fix https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=927297 --- debian/rake-tasks.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/debian/rake-tasks.sh b/debian/rake-tasks.sh index 350e4cc981..6545ade346 100755 --- a/debian/rake-tasks.sh +++ b/debian/rake-tasks.sh @@ -49,4 +49,5 @@ runuser -u ${gitlab_user} -- sh -c 'cd /usr/share/gitlab/public/assets && \ echo "Webpacking..." # 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 --config config/webpack.config.js' +# Build assets in production mode - https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=956508 +runuser -u ${gitlab_user} -- sh -c 'NODE_ENV="production" NODE_OPTIONS="--max-old-space-size=4096" webpack --config config/webpack.config.js'