summaryrefslogtreecommitdiff
path: root/deploy.sh
diff options
context:
space:
mode:
authorFederico Angelilli <code@fedang.net>2024-12-15 13:03:43 +0100
committerFederico Angelilli <code@fedang.net>2024-12-15 13:03:43 +0100
commit4ff5bfddcf28c265de09819f59bf6d8afd50e2c9 (patch)
treed6a01ed1c581a2e54d15c34d23548c3fc6b47276 /deploy.sh
parent9f5366d4794f5b0401eb51b3a49a3a46fab7df2c (diff)
Add deploy.sh
Diffstat (limited to 'deploy.sh')
-rwxr-xr-xdeploy.sh9
1 files changed, 9 insertions, 0 deletions
diff --git a/deploy.sh b/deploy.sh
new file mode 100755
index 0000000..ea4fcfc
--- /dev/null
+++ b/deploy.sh
@@ -0,0 +1,9 @@
+#!/bin/sh
+
+USER=chad
+HOST=fedang.net
+DIR=/var/www/html
+
+hugo && rsync -avz --delete public/ --exclude=/.well-known ${USER}@${HOST}:${DIR}
+# this will delete everything on the server that's not in the local public folder
+