2024-03-09 21:44:41 +01:00
|
|
|
preview:
|
|
|
|
hugo serve --buildDrafts --buildExpired --buildFuture --navigateToChanged
|
|
|
|
|
|
|
|
USER:='root'
|
2024-08-07 21:56:42 +02:00
|
|
|
HOST:='cirrostratus'
|
2024-07-29 22:30:25 +02:00
|
|
|
DIR:='/var/www/gabevenberg.com'
|
2024-08-07 19:04:55 +02:00
|
|
|
DRAFTDIR:='/var/www/draft.gabevenberg.com'
|
2024-03-09 21:44:41 +01:00
|
|
|
|
2024-08-07 21:56:42 +02:00
|
|
|
deploy: clean
|
2024-03-09 21:44:41 +01:00
|
|
|
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 19:04:55 +02:00
|
|
|
|
2024-08-07 21:56:42 +02:00
|
|
|
deploy-preview: clean
|
|
|
|
hugo --minify --buildDrafts --buildFuture --baseURL 'https://draft.gabevenberg.com/'
|
2024-08-07 19:04:55 +02:00
|
|
|
rsync -rvz --delete public/ {{USER}}@{{HOST}}:{{DRAFTDIR}} # this will delete everything on the server that's not in the local public folder
|
2024-08-07 21:56:42 +02:00
|
|
|
|
|
|
|
clean:
|
|
|
|
-rm -r ./public/
|