Change deploy method

This commit is contained in:
Digital Studium
2023-05-09 15:33:19 +03:00
parent c2f72e6cce
commit 7e4b06a217
3 changed files with 11 additions and 9 deletions

8
deploy Executable file
View File

@@ -0,0 +1,8 @@
#!/bin/sh
USER=root
HOST=digitalstudium.com
DIR=/srv/$HOST # the directory where your web site files should go
hugo --minify && rsync -avz --delete public/ ${USER}@${HOST}:${DIR} # this will delete everything on the server that's not in the local public folder
exit 0