techWebsite/justfile

19 lines
656 B
Makefile
Raw Normal View History

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'
DRAFTDIR:='/var/www/draft.gabevenberg.com'
2024-08-07 21:56:42 +02:00
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
2024-08-07 21:56:42 +02:00
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
2024-08-07 21:56:42 +02:00
clean:
-rm -r ./public/