www-garbaye/publish.sh

12 lines
235 B
Bash
Raw Normal View History

2022-08-15 18:33:52 +00:00
#!/usr/bin/env bash
[[ -d ./public ]] && rm -rf ./public
zola build && {
2023-11-17 12:24:46 +00:00
for webserver in aspire-7250 m4500; do
2022-08-15 18:33:52 +00:00
rsync -P -rvzc --include tags --cvs-exclude --delete "public/" "root@${webserver}:/var/www/html/garbaye.fr"
done
}