mirror of
https://github.com/sameersbn/docker-gitlab.git
synced 2026-01-18 13:58:25 +00:00
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:
parent
676f7ffd49
commit
79f84308f6
@ -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..."
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user