From 8bc8cc27d6834f4f746171de9f2b04e5f63d2885 Mon Sep 17 00:00:00 2001 From: Greg Gauthier Date: Tue, 28 Dec 2021 13:59:58 +0000 Subject: [PATCH] testing --- publish.sh | 12 +++--------- 1 file changed, 3 insertions(+), 9 deletions(-) diff --git a/publish.sh b/publish.sh index fe54f13..6afcde2 100755 --- a/publish.sh +++ b/publish.sh @@ -3,16 +3,10 @@ # commit and push... git add .;git commit -m"$@";git push -u origin master -# build the site -hugo +rm -R public # destroy the old build first +hugo # build the new site +sudo chown -R gmgauthier:www-data ./public/* # set the ownership before transfer -# push the files to the webserver -# scp -rp * root@boethius:/hosting/sites/gmgauthier.com -sudo chown -R gmgauthier:www-data ./public/* - -echo "COPY THE FILES..." rsync --super -avh -e ssh ./public/* gmgauthier@boethius:/hosting/sites/gmgauthier.com echo "ls -lA /hosting/sites/gmgauthier.com" | ssh gmgauthier@boethius /bin/bash -# remove the old build -# rm -R public