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
This commit is contained in:
vv221 2020-04-12 10:16:22 +02:00
parent 5a0901da96
commit 9d95c466b0

View file

@ -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'