diff options
author | Gustaf Rydholm <gustaf.rydholm@gmail.com> | 2023-07-11 16:48:50 +0200 |
---|---|---|
committer | Gustaf Rydholm <gustaf.rydholm@gmail.com> | 2023-07-11 16:48:50 +0200 |
commit | c06f8d2aba4cd70188237ea967db75dff51539c7 (patch) | |
tree | 36254f02f7e903cc6053e7def423e2b757dd0f19 /deploy | |
parent | 6542e275527f979e293ecdb5c290501de0de52be (diff) |
Add deploy script
Diffstat (limited to 'deploy')
-rwxr-xr-x | deploy | 8 |
1 files changed, 8 insertions, 0 deletions
@@ -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 |