Skip to content

Commit 28a4fed

Browse files
committed
Increase memory to avoid heap limit allocation failure
1 parent 3eaad8d commit 28a4fed

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

assets/build/install.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -212,7 +212,7 @@ chown ${GITLAB_USER}: ${GITLAB_INSTALL_DIR}/config/database.yml
212212
exec_as_git yarn install --production --pure-lockfile
213213

214214
echo "Compiling assets. Please be patient, this could take a while..."
215-
exec_as_git bundle exec rake gitlab:assets:compile USE_DB=false SKIP_STORAGE_VALIDATION=true NODE_OPTIONS="--max-old-space-size=4096"
215+
exec_as_git bundle exec rake gitlab:assets:compile USE_DB=false SKIP_STORAGE_VALIDATION=true NODE_OPTIONS="--max-old-space-size=8192"
216216

217217
# remove auto generated ${GITLAB_DATA_DIR}/config/secrets.yml
218218
rm -rf ${GITLAB_DATA_DIR}/config/secrets.yml

assets/runtime/functions

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2260,7 +2260,7 @@ migrate_database() {
22602260
chown -R ${GITLAB_USER}: ${GITLAB_HOME}/gitlab/node_modules
22612261
exec_as_git yarn install --production --pure-lockfile
22622262
echo "Recompiling assets (relative_url in use), this could take a while..."
2263-
exec_as_git bundle exec rake gitlab:assets:compile NODE_OPTIONS="--max-old-space-size=4096" >/dev/null 2>&1
2263+
exec_as_git bundle exec rake gitlab:assets:compile NODE_OPTIONS="--max-old-space-size=8192" >/dev/null 2>&1
22642264
fi
22652265

22662266
echo "Clearing cache..."

0 commit comments

Comments
 (0)