techWebsite/deploy.sh

13 lines
221 B
Bash
Raw Normal View History

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