gmgauthier.com/publish.sh
2021-12-28 13:55:53 +00:00

19 lines
483 B
Bash
Executable File

#!/usr/bin/env sh
# commit and push...
git add .;git commit -m"$@";git push -u origin master
# build the site
hugo
# push the files to the webserver
# scp -rp * root@boethius:/hosting/sites/gmgauthier.com
sudo chown -R www-data: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