#!/usr/bin/env sh # build the site hugo -D # push the files cd public scp -rp * root@boethius:/hosting/sites/gmgauthier.com echo "chown -R www-data:www-data /hosting/sites/gmgauthier.com" | ssh root@boethius /bin/bash echo "ls -la /hosting/sites/gmgauthier.com" | ssh root@boethius /bin/bash # remove the old build cd .. rm -R public