seandugre.com/justfile
2025-11-30 19:29:31 -05:00

27 lines
577 B
Makefile

# see available `just` commands
list:
just --list
# create scaffolding & hugo.toml
init:
hugo new site . --force
# serve website on http://localhost:1313
serve:
hugo serve -D
# create new post
post MDFILE:
mkdir -p content/posts
hugo new content 'content/posts/{{ MDFILE }}' || true
# deploy to SERVER at DIR using tar/ssh/scp
deploy SERVER='chummie' DIR='/var/www/seandugre.com':
hugo
tar cfz public.tgz public/
scp public.tgz {{ SERVER }}:{{ DIR }}
ssh {{ SERVER }} 'cd {{ DIR }} && tar xfz public.tgz'
# deletes public folder
purge:
rm -rf public/*