14 lines
498 B
Bash
Executable File
14 lines
498 B
Bash
Executable File
#!/usr/bin/env sh
|
|
|
|
# commit and push...
|
|
git add .;git commit -m"$@";git push -u origin master
|
|
|
|
rm -rf public # destroy the old build first
|
|
hugo # build the new site
|
|
sudo chown -R gmgauthier:www-data ./public/* # set the ownership before transfer
|
|
|
|
|
|
rsync --super -avh -e ssh ./public/* gmgauthier@socrates:/home/gmgauthier/gmgauthier.com
|
|
# echo "ls -lA /hosting/sites/gmgauthier.com" | ssh gmgauthier@boethius /bin/bash
|
|
|