aboutsummaryrefslogtreecommitdiff
path: root/mise.toml
blob: e7bffefb11ab702a20127de1897d1a4abd95b80c (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28

[tasks.build]
description = "Build the site"
run = [
    "rm -rf public/",
    "hugo",
]

[tasks.stats]
description = "Show word stats"
depends = ["build"]
run = "python3 scripts/stats.py public/wordstats.json"

[tasks.deploy]
description = "Build and deploy to production"
depends = ["build"]
run = 'rsync --rsync-path="sudo rsync" -avz --delete public/ ubuntu@feed.kagamino.dev:/var/www/kagamino_blog/'

[tasks.dev]
description = "Start dev server (with drafts)"
run = "hugo server -D"

[tasks.preprod]
description = "Build and serve locally for preprod"
run = [
    "rm -rf public/",
    "hugo -D -b http://localhost:8000/",
    "python -m http.server -d public/",
]