ataricode.com/publish

16 lines
614 B
Plaintext
Raw Permalink 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
2025-01-15 10:34:01 +00:00
echo "Remove old deploy site..."
rm -rf public # destroy the old build first
echo "Generate new deploy site..."
2023-01-24 18:52:09 +00:00
hugo # build the new site
2025-01-15 11:06:54 +00:00
#echo "Set deploy site ownership..."
#sudo chown -R www-data:www-data ./public # set the ownership before transfer
2025-01-15 10:34:01 +00:00
echo "Rsync to host..."
2025-01-15 11:06:54 +00:00
rsync --super -avh -e ssh ./public/* gmgauthier@socrates:/var/www/ataricode.com
2023-01-24 18:52:09 +00:00
# echo "ls -lA /hosting/sites/gmgauthier.com" | ssh gmgauthier@boethius /bin/bash