From 349007be9582d7ac97af1127d2d3736675589ec5 Mon Sep 17 00:00:00 2001 From: Gabe Venberg Date: Wed, 7 Aug 2024 14:56:42 -0500 Subject: [PATCH] made draft deployment. --- justfile | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/justfile b/justfile index c1f9960..e3a444f 100644 --- a/justfile +++ b/justfile @@ -2,14 +2,17 @@ preview: hugo serve --buildDrafts --buildExpired --buildFuture --navigateToChanged USER:='root' -HOST:='gabevenberg.com' +HOST:='cirrostratus' DIR:='/var/www/gabevenberg.com' DRAFTDIR:='/var/www/draft.gabevenberg.com' -deploy: +deploy: clean hugo --minify rsync -rvz --delete public/ {{USER}}@{{HOST}}:{{DIR}} # this will delete everything on the server that's not in the local public folder -deploy-preview: - hugo --minify --buildDrafts --buildFuture +deploy-preview: clean + hugo --minify --buildDrafts --buildFuture --baseURL 'https://draft.gabevenberg.com/' rsync -rvz --delete public/ {{USER}}@{{HOST}}:{{DRAFTDIR}} # this will delete everything on the server that's not in the local public folder + +clean: + -rm -r ./public/