feat: setup justfile
This commit is contained in:
parent
cf88a7e9da
commit
05f3f6f7ae
1 changed files with 26 additions and 0 deletions
26
justfile
Normal file
26
justfile
Normal file
|
|
@ -0,0 +1,26 @@
|
|||
# Build website
|
||||
[group('hugo')]
|
||||
build:
|
||||
hugo
|
||||
|
||||
# Setup webserver for site
|
||||
[group('hugo')]
|
||||
server:
|
||||
hugo server -D
|
||||
|
||||
# Create new blog page and enter it with nvim
|
||||
[group('hugo')]
|
||||
blog name:
|
||||
hugo new blog/{{ name }}
|
||||
nvim content/blog/{{ name }}
|
||||
|
||||
[group('server')]
|
||||
sync:
|
||||
sudo systemctl start wg-quick-wg0.service
|
||||
rsync -rP --delete public/ root@odin:/var/lib/website
|
||||
sudo systemctl stop wg-quick-wg0.service
|
||||
|
||||
[group('git')]
|
||||
commit-rebuild:
|
||||
git add .
|
||||
git commit -m "Site rebuild $(date +'%d/%m/%Y')"
|
||||
Loading…
Add table
Add a link
Reference in a new issue