Add cache deletion in deploy script

This commit is contained in:
Pieter Vander Vennet 2020-09-25 23:24:56 +02:00
parent 232431bbf7
commit 622add9e52

View file

@ -5,6 +5,8 @@ ts-node createLayouts.ts || { echo 'Creating layouts failed' ; exit 1; }
find -name '*.png' | parallel optipng '{}' find -name '*.png' | parallel optipng '{}'
npm run build || { echo 'Npm build failed' ; exit 1; } npm run build || { echo 'Npm build failed' ; exit 1; }
rm -rf .cache
if [[ $1 == "groen" ]] if [[ $1 == "groen" ]]
then then
echo "DEPLOYING TO BUURTNATUUR!" echo "DEPLOYING TO BUURTNATUUR!"