From 79f84308f6d740a6cf1b4918a262cdbee6aef8a7 Mon Sep 17 00:00:00 2001 From: Olaf Meeuwissen Date: Sun, 14 Apr 2019 11:52:36 +0900 Subject: [PATCH] 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 --- assets/runtime/functions | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/assets/runtime/functions b/assets/runtime/functions index 08d3a509..ab3e02d8 100644 --- a/assets/runtime/functions +++ b/assets/runtime/functions @@ -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..."