This commit is contained in:
2025-04-07 00:47:47 +02:00
parent a820788415
commit 4a08fd80aa
3 changed files with 122 additions and 0 deletions

8
deploy Executable file
View File

@@ -0,0 +1,8 @@
#!/bin/sh
USER=pleb
HOST=bob
DIR=/var/www/resumes/julien/ # the directory where your website files should go
hugo && rsync -avz --rsync-path='sudo rsync' --progress -e ssh --delete public/ ${USER}@${HOST}:${DIR} # this will delete everything on the server that's not in the local public folder
exit 0