-
Notifications
You must be signed in to change notification settings - Fork 1
/
modd.conf
32 lines (29 loc) · 1004 Bytes
/
modd.conf
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
29
30
31
32
# Alpine default shell is busybox, but we need arrays. So use bash:
@shell = bash
# Content Handling
"content/**" {
prep: : Ensure content is owned by developer \
; \
find @dirmods -maxdepth 1 \
! -group developer -print0 -o \
! -user developer -print0 \
| xargs -r0 chown -v developer:developer
}
"content/**/*.md" !**/[_.]postmark/*.md !**/.~*.md {
prep +onchange: : Sync changed content files \
; \
as-developer wp postmark tree @dirmods --skip-create
}
"content/**/[_.]postmark/*.{md,twig,yml}" !**/.~*.md {
prep +onchange: : Sync content for changed template files \
; \
dirs=(@dirmods); as-developer wp postmark tree "${dirs[@]%/*}" --skip-create
}
# Run imposer whenever (project-specific) state files change
imposer-project.md imposer/**/*.state.md !**/.~*.md !imposer/.cache/** {
prep +onchange: as-developer imposer apply
}
# Reload configuration file when changed
modd.conf {
prep +onchange: supervisorctl restart modd
}