add simple logging
This commit is contained in:
parent
27d74443a8
commit
293acb6fa0
7
publish
7
publish
@ -3,10 +3,13 @@
|
|||||||
# commit and push...
|
# commit and push...
|
||||||
git add .;git commit -m"$@";git push -u origin master
|
git add .;git commit -m"$@";git push -u origin master
|
||||||
|
|
||||||
|
echo "Remove old deploy site..."
|
||||||
rm -rf public # destroy the old build first
|
rm -rf public # destroy the old build first
|
||||||
|
echo "Generate new deploy site..."
|
||||||
hugo # build the new site
|
hugo # build the new site
|
||||||
sudo chown -R gmgauthier:www-data ./public/* # set the ownership before transfer
|
echo "Set deploy site ownership..."
|
||||||
|
sudo chown -R gmgauthier:www-data ./public # set the ownership before transfer
|
||||||
|
echo "Rsync to host..."
|
||||||
rsync --super -avh -e ssh ./public/* gmgauthier@socrates:/var/www/ataricode.com
|
rsync --super -avh -e ssh ./public/* gmgauthier@socrates:/var/www/ataricode.com
|
||||||
# echo "ls -lA /hosting/sites/gmgauthier.com" | ssh gmgauthier@boethius /bin/bash
|
# echo "ls -lA /hosting/sites/gmgauthier.com" | ssh gmgauthier@boethius /bin/bash
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user