added draft deploy, for getting feedback.

This commit is contained in:
Gabe Venberg 2024-08-07 12:04:55 -05:00
parent 87eec1d61b
commit 018c27f6e3
2 changed files with 6 additions and 1 deletions

View file

@ -4,7 +4,12 @@ preview:
USER:='root'
HOST:='gabevenberg.com'
DIR:='/var/www/gabevenberg.com'
DRAFTDIR:='/var/www/draft.gabevenberg.com'
deploy:
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
rsync -rvz --delete public/ {{USER}}@{{HOST}}:{{DRAFTDIR}} # this will delete everything on the server that's not in the local public folder