14 lines
329 B
Bash
Executable file
14 lines
329 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/brut.esy.fun/
|
|
echo " [done]"
|