techWebsite/deploy.sh

13 lines
212 B
Bash
Raw Normal View History

#!/bin/sh
set -e
USER=root
HOST=10.10.1.5
DIR=/srv/gabevenberg
hugo
rsync -rvz --delete public/ ${USER}@${HOST}:${DIR} # this will delete everything on the server that's not in the local public folder
exit 0