Fix gitlab:assets:compile task for relative URL root setups

This makes container startup/upgrades use the same `NODE_OPTIONS` as
the Docker image build process.

Fixes #1896
This commit is contained in:
Olaf Meeuwissen 2019-04-14 11:52:36 +09:00 committed by Niclas Mietz
parent 676f7ffd49
commit 79f84308f6

View File

@ -1786,7 +1786,7 @@ migrate_database() {
# assets need to be recompiled when GITLAB_RELATIVE_URL_ROOT is used
if [[ -n ${GITLAB_RELATIVE_URL_ROOT} ]]; then
echo "Recompiling assets (relative_url in use), this could take a while..."
exec_as_git bundle exec rake gitlab:assets:compile >/dev/null 2>&1
exec_as_git bundle exec rake gitlab:assets:compile NODE_OPTIONS="--max-old-space-size=4096" >/dev/null 2>&1
fi
echo "Clearing cache..."