Set NODE_ENV=production and add immutable for yarnpkg install
This commit is contained in:
parent
1e0ea7acf0
commit
7d0597e91e
1 changed files with 1 additions and 1 deletions
2
debian/rake-tasks.sh
vendored
2
debian/rake-tasks.sh
vendored
|
@ -43,7 +43,7 @@ cd /var/lib/gitlab
|
|||
runuser -u ${gitlab_user} -- sh -c 'install -d /var/lib/gitlab/.cache'
|
||||
runuser -u ${gitlab_user} -- sh -c 'yarnpkg set version berry'
|
||||
runuser -u ${gitlab_user} -- sh -c 'if ! grep nodeLinker .yarnrc.yml >/dev/null; then echo "nodeLinker: \"node-modules\"" >>.yarnrc.yml; fi'
|
||||
runuser -u ${gitlab_user} -- sh -c 'yarnpkg install'
|
||||
runuser -u ${gitlab_user} -- sh -c 'NODE_ENV=production yarnpkg install --immutable'
|
||||
# Remove write permissions of .yarn-metadata.json files
|
||||
runuser -u ${gitlab_user} -- sh -c 'test -d "/var/lib/gitlab/.cache/yarn/v6" && find /var/lib/gitlab/.cache/yarn/v6/ -name .yarn-metadata.json -perm -a=w -exec chmod 644 {} \;'
|
||||
|
||||
|
|
Loading…
Reference in a new issue