Created
April 23, 2023 15:11
-
-
Save ubuntupunk/b9efdcb6d83169084127823a8273ed45 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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