Blog/deploy.sh

9 lines
229 B
Bash
Raw Normal View History

2019-07-29 13:42:29 +00:00
#!/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}