Deploy script

This commit is contained in:
David Eisinger
2023-11-16 09:53:31 -05:00
parent f6673d0c47
commit 5dad07d32a
2 changed files with 19 additions and 1 deletions

15
bin/deploy Executable file
View File

@@ -0,0 +1,15 @@
set -e
rm -rf public
source bin/get-last-commit.sh
hugo --ignoreCache
rsync \
-v \
-r \
--delete \
-e "ssh -o PubkeyAcceptedKeyTypes=+ssh-rsa" \
public/* \
www-data@$SERVER_IP:/var/www/davideisinger.com