Blog/deploy.sh
Paul Lesur 819835ea67 hey
2019-07-29 15:42:29 +02:00

8 lines
229 B
Bash
Executable file

#!/bin/bash
# this should define:
# UNAME, HOST, PORT, DEST_DIR
source .env
hugo && \
rsync --archive -hh --partial --info=stats1 --info=progress2 --modify-window=1 -e "ssh -p ${PORT}" public/ ${UNAME}@${HOST}:${DEST_DIR}