add proper deploy script

This commit is contained in:
Jonathan Jenne 2022-05-17 08:51:19 +02:00
parent d6007f4e72
commit 9aaf97b593
1 changed files with 11 additions and 1 deletions

12
deploy.sh Normal file → Executable file
View File

@ -1 +1,11 @@
npm run build
#!/usr/bin/env bash
ZANN_HOST=inhji.de
ZANN_DIR=/home/inhji/www/german
echo ""
echo "Pushing changes..."
echo "--------------------------"
#rsync -avz dist $ZANN_HOST:$ZANN_DIR --progress
rsync -chavzP --stats ./dist $ZANN_HOST:$ZANN_DIR