Pass NODE_OPTIONS="--max-old-space-size=2048" to webpack to work with nodejs 10

This commit is contained in:
Pirate Praveen 2020-04-11 00:46:45 +05:30
parent 05542edbb8
commit 1e3087460f
2 changed files with 3 additions and 2 deletions

2
debian/control vendored
View file

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

View file

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