Files
tpml/deploy
T
2026-07-06 13:43:39 +02:00

9 lines
301 B
Bash
Executable File

#!/bin/sh
USER=pleb
HOST=carlo
DIR=/mnt/ssd/www/tpml/ # the directory where your website files should go
hugo && rsync -avz --rsync-path='sudo rsync' --progress -e ssh --delete public/ ${USER}@${HOST}:${DIR} # this will delete everything on the server that's not in the local public folder
exit 0