devlog/deploy

9 lines
253 B
Plaintext
Raw Normal View History

2024-11-15 15:12:36 +00:00
#!/bin/sh
USER=andrzej
HOST=192.168.0.70
DIR=site # the directory where your website 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