Commit ffd488ef authored by Vladimir Bashkirtsev's avatar Vladimir Bashkirtsev

Cleanup after NPM

parent b101a081
......@@ -54,6 +54,17 @@ all: database-config
cd /srv/www && HOME=$(CURDIR)/gitlab-home yarn install --production --pure-lockfile
cd /srv/www && HOME=$(CURDIR)/gitlab-home bundle exec rake gitlab:assets:compile RAILS_ENV=production NODE_ENV=production NODE_OPTIONS="--max-old-space-size=3072"
rm -rf /usr/local/share/.yarnrc
find / -name *.pyc -exec rm -f '{}' ';'
find / -name *.js.map -exec rm -f '{}' ';'
find / -name *.css.map -exec rm -f '{}' ';'
find / -depth -name .cache -type d -exec rm -rf '{}' ';'
find / -depth -name .pytest_cache -type d -exec rm -rf '{}' ';'
find / -depth -name .mypy_cache -type d -exec rm -rf '{}' ';'
find / -depth -name __pycache__ -type d -exec rm -rf '{}' ';'
find / -depth -name .tox -type d -exec rm -rf '{}' ';'
find / -depth -name node_modules -type d -exec rm -rf '{}' ';'
rm -rf gitlab-home
umount /tmp
rm -rf tmp
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment