techWebsite/justfile

31 lines
808 B
Makefile

preview:
hugo serve --buildDrafts --buildExpired --buildFuture --navigateToChanged
USER:='root'
HOST:='gabevenberg.com'
DIR:='/var/www/gabevenberg.com'
DRAFTDIR:='/var/www/draft.gabevenberg.com'
deploy: clean
hugo --minify
rsync \
--compress \
--delete \
--progress \
--recursive \
--mkpath \
public/ {{USER}}@{{HOST}}:{{DIR}} # this will delete everything on the server that's not in the local public folder
deploy-preview: clean
hugo --minify --buildDrafts --buildFuture --baseURL 'https://draft.gabevenberg.com/'
rsync \
--compress \
--delete \
--progress \
--recursive \
--mkpath \
public/ {{USER}}@{{HOST}}:{{DRAFTDIR}} # this will delete everything on the server that's not in the local public folder
clean:
-rm -r ./public/