info-cachapa/deploy

9 lines
266 B
Text
Raw Permalink Normal View History

2022-12-21 16:12:07 +00:00
#!/bin/sh
USER=caparepa
HOST=webdock
DIR=temp/cachapa.xyz/ # the directory where your web site files should go
hugo && rsync -avz --delete public/ ${USER}@${HOST}:~/${DIR} # this will delete everything on the server that's not in the local public folder
exit 0