Simplify deploy script

This commit is contained in:
David Thurstenson 2021-10-05 21:44:07 -05:00
parent 3edaf126dc
commit bd65c88e87
1 changed files with 2 additions and 4 deletions

6
deploy
View File

@ -3,11 +3,9 @@
# To auto-deploy this on git push, add a symlink at .git/hooks/pre-push that points to this script
# Example: ln -s ../../deploy .git/hooks/pre-push
# Get the dir of the running script
SCRIPT_DIR="$( cd -- "$( dirname -- "${BASH_SOURCE[0]}" )" &> /dev/null && pwd )"
# Pull variables in from deploy_id
source "$SCRIPT_DIR/deploy_id"
#source "$SCRIPT_DIR/deploy_id"
source "./deploy_id"
# Generate and push the output to the server
hugo && rsync -avz --delete public/ ${USER}@${HOST}:${DIR}