gmgauthier.com/publish.sh

19 lines
483 B
Bash
Raw Normal View History

#!/usr/bin/env sh
2021-04-06 18:57:16 +00:00
# commit and push...
2021-11-28 00:10:43 +00:00
git add .;git commit -m"$@";git push -u origin master
2021-04-06 18:57:16 +00:00
# build the site
2021-04-06 19:14:30 +00:00
hugo
# push the files to the webserver
# scp -rp * root@boethius:/hosting/sites/gmgauthier.com
2021-12-28 13:55:53 +00:00
sudo chown -R www-data:www-data ./public/*
2021-12-28 13:48:54 +00:00
2021-12-28 13:24:59 +00:00
echo "COPY THE FILES..."
2021-12-28 13:37:10 +00:00
rsync --super -avh -e ssh ./public/* gmgauthier@boethius:/hosting/sites/gmgauthier.com
2021-12-28 13:26:06 +00:00
echo "ls -lA /hosting/sites/gmgauthier.com" | ssh gmgauthier@boethius /bin/bash
# remove the old build
# rm -R public