her.esy.fun/engine/sync.sh

15 lines
328 B
Bash
Executable File

#!/usr/bin/env zsh
cd "$(git rev-parse --show-toplevel)" || exit 1
webdir="_site"
[[ -d $webdir ]] || { echo "no $webdir directory"; exit 1 }
echo -n "Uploading website"
rsync --progress\
--partial \
--delete \
--exclude '.git' \
-avHe ssh ${webdir}/ root@esy.fun:/var/www/her.esy.fun/
echo " [done]"