2024-03-09 14:44:41 -06:00
|
|
|
preview:
|
|
|
|
hugo serve --buildDrafts --buildExpired --buildFuture --navigateToChanged
|
|
|
|
|
|
|
|
USER:='root'
|
2024-07-29 15:30:25 -05:00
|
|
|
HOST:='gabevenberg.com'
|
|
|
|
DIR:='/var/www/gabevenberg.com'
|
2024-08-07 12:04:55 -05:00
|
|
|
DRAFTDIR:='/var/www/draft.gabevenberg.com'
|
2024-03-09 14:44:41 -06:00
|
|
|
|
|
|
|
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
|
2024-08-07 12:04:55 -05:00
|
|
|
|
|
|
|
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
|