#!/usr/bin/env sh # commit and push... git add .;git commit -m"$@";git push -u origin master echo "Remove old deploy site..." rm -rf public # destroy the old build first echo "Generate new deploy site..." hugo # build the new site echo "Set deploy site ownership..." sudo chown -R www-data:www-data ./public # set the ownership before transfer echo "Rsync to host..." rsync --super -avhr -e ssh ./public/* gmgauthier@socrates:/var/www/ataricode.com # echo "ls -lA /hosting/sites/gmgauthier.com" | ssh gmgauthier@boethius /bin/bash