Skip to content

Instantly share code, notes, and snippets.

@ubuntupunk
Created April 23, 2023 15:11
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ubuntupunk/b9efdcb6d83169084127823a8273ed45 to your computer and use it in GitHub Desktop.
Save ubuntupunk/b9efdcb6d83169084127823a8273ed45 to your computer and use it in GitHub Desktop.
#!/bin/sh
USER=my-user
HOST=my-server.com
DIR=my/directory/to/topologix.fr/ # 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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment