ataricode.com/publish

13 lines
494 B
Plaintext
Raw Normal View History

2023-01-24 18:52:09 +00:00
#!/usr/bin/env sh
# commit and push...
git add .;git commit -m"$@";git push -u origin master
rm -rf public # destroy the old build first
hugo # build the new site
sudo chown -R gmgauthier:www-data ./public/* # set the ownership before transfer
2023-01-24 18:56:41 +00:00
rsync --super -avh -e ssh ./public/* gmgauthier@diogenes:/hosting/sites/ataricode.com
2023-01-24 18:52:09 +00:00
# echo "ls -lA /hosting/sites/gmgauthier.com" | ssh gmgauthier@boethius /bin/bash