Skip to content

Instantly share code, notes, and snippets.

@adoji92

adoji92/asdf.zsh

Created Feb 14, 2018
Embed
What would you like to do?
cd /mnt/host/busun
git pull
git log -1
yarn
rm -rf dist
yarn run build
build=$?
if [ $build -eq 0 ]; then
cd ~/jsmap
rm *
cd /mnt/host/busun/dist/static/js
mv *.map ~/jsmap
cd ../css
mv *.map ~/jsmap
mv /mnt/www/busun/dist /mnt/www/busun/backup-`date +"%Y-%m-%d-%H-%M-%S"`
rm -rf /var/www/busun/dist
cp -r /mnt/host/busun/dist /mnt/www/busun/dist
cd ~/favicon
cp * /mnt/www/busun/dist/
fi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment