initial publish
This commit is contained in:
parent
fe383f9333
commit
158d021613
49 changed files with 1796 additions and 26 deletions
27
justfile
Normal file
27
justfile
Normal file
|
|
@ -0,0 +1,27 @@
|
|||
# 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/*
|
||||
Loading…
Add table
Add a link
Reference in a new issue