Rsync Shell script for a Hugo Deploy

nano deploy
#!/bin/sh

hugo && rsync -avz --delete public/ <user>@,server>:/var/www/<your
_doc_root>

exit 0
chmod a+x deploy

Now to deploy from Hugo site root:

./deploy

Simplistic but you can also set user and server as variables if that's preferred.