From a574ca5709be8b47af150ba68717ab76e6888e62 Mon Sep 17 00:00:00 2001 From: Greg Gauthier Date: Sun, 28 Nov 2021 13:52:19 +0000 Subject: [PATCH] use rsync for publishing instead of scp --- publish.sh | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/publish.sh b/publish.sh index f3bcc3d..8af57c8 100755 --- a/publish.sh +++ b/publish.sh @@ -6,12 +6,11 @@ git add .;git commit -m"$@";git push -u origin master # build the site hugo -# push the files -cd public -scp -rp * root@boethius:/hosting/sites/gmgauthier.com +# push the files to the webserver +# scp -rp * root@boethius:/hosting/sites/gmgauthier.com +rsync -avh -e ssh ./public/* root@boethius:/hosting/sites/gmgauthier.com echo "chown -R www-data:www-data /hosting/sites/gmgauthier.com" | ssh root@boethius /bin/bash echo "ls -lA /hosting/sites/gmgauthier.com" | ssh root@boethius /bin/bash # remove the old build -cd .. -rm -R public +# rm -R public