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