Drop work around for missing assets/select2.png (not required in

NODE_ENV=production mode for webpack)
This commit is contained in:
Pirate Praveen 2020-04-12 18:17:17 +05:30
parent febdb44177
commit f9e0ea3581

View file

@ -41,12 +41,6 @@ runuser -u ${gitlab_user} -- sh -c '/usr/bin/bundle exec rake gettext:po_to_json
echo "Precompiling assets..."
runuser -u ${gitlab_user} -- sh -c '/usr/bin/bundle exec rake tmp:cache:clear assets:precompile'
# Workaround for https://gitlab.com/gitlab-org/gitlab/-/issues/213245
echo "Adding symbolic link for assets/select2.png..."
runuser -u ${gitlab_user} -- sh -c 'cd /usr/share/gitlab/public/assets && \
if ! [ -f select2.png ]; then \
ln -s select2-d6b5d8d83dbc18fb8d77c8761d331cd9e5123c9684950bab0406e98a24ac5ae8.png select2.png; fi'
echo "Webpacking..."
# Workaround for webpack crashing with nodejs 10 - https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=956211
# Build assets in production mode - https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=956508