From c06f8d2aba4cd70188237ea967db75dff51539c7 Mon Sep 17 00:00:00 2001 From: Gustaf Rydholm Date: Tue, 11 Jul 2023 16:48:50 +0200 Subject: Add deploy script --- deploy | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100755 deploy (limited to 'deploy') diff --git a/deploy b/deploy new file mode 100755 index 0000000..3b076c6 --- /dev/null +++ b/deploy @@ -0,0 +1,8 @@ +#!/bin/sh +USER="root" +HOST="gustafrydholm.xyz" +DIR="/var/www/$HOST" # 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 -- cgit v1.2.3-70-g09d2