summaryrefslogtreecommitdiff
path: root/deploy
diff options
context:
space:
mode:
authorGustaf Rydholm <gustaf.rydholm@gmail.com>2023-07-11 16:48:50 +0200
committerGustaf Rydholm <gustaf.rydholm@gmail.com>2023-07-11 16:48:50 +0200
commitc06f8d2aba4cd70188237ea967db75dff51539c7 (patch)
tree36254f02f7e903cc6053e7def423e2b757dd0f19 /deploy
parent6542e275527f979e293ecdb5c290501de0de52be (diff)
Add deploy script
Diffstat (limited to 'deploy')
-rwxr-xr-xdeploy8
1 files changed, 8 insertions, 0 deletions
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