2019-11-22 00:51:02 +00:00
|
|
|
#!/usr/bin/env zsh
|
|
|
|
|
2020-02-10 08:42:17 +00:00
|
|
|
cd "$(git rev-parse --show-toplevel)" || exit 1
|
2021-05-06 22:21:41 +00:00
|
|
|
webdir="_site"
|
2020-02-16 15:56:19 +00:00
|
|
|
|
|
|
|
[[ -d $webdir ]] || { echo "no $webdir directory"; exit 1 }
|
2019-11-22 00:51:02 +00:00
|
|
|
|
2019-12-22 23:01:06 +00:00
|
|
|
echo -n "Uploading website"
|
2020-02-16 15:56:19 +00:00
|
|
|
rsync --progress\
|
|
|
|
--partial \
|
|
|
|
--delete \
|
2021-05-06 22:21:41 +00:00
|
|
|
--exclude '.git' \
|
2020-02-16 15:56:19 +00:00
|
|
|
-avHe ssh ${webdir}/ root@esy.fun:/var/www/her.esy.fun/
|
2019-12-22 23:01:06 +00:00
|
|
|
echo " [done]"
|