Files
loicgentil.fr/deploy
2025-06-25 15:43:30 +02:00

10 lines
345 B
Bash
Executable File

#!/bin/sh
USER=loicgentil
RSYNC_PASSWORDD=QjRUq94SkOK$W2iVE*fVBiO8
HOST=ftp.loicgentil.fr
DIR=/home/loicgentil/public_html/ # the directory where your website files should go
hugo && rsync -avz --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