abiosoft / abiosoft/caddy-git

How to reload caddy after fetching git repo?

Đang mở
#59 4 bình luận 2 reaction 0 người được giao Xem trên GitHub
Ngôn ngữ chính
Go
Star
206
Fork
42
Chỉ số merge pull request
Không có pull request nào được merge trong 30 ngày

Mô tả

There might be many reasons to reload caddy after updating git repo.

In my case I use `markdown` and `templates` with markdown directive. Example:

```
localhost {
root /var/www/html

git {
repo myrepo.git
path /var/caddy-repo
then rsync -a --delete --force --update /var/caddy-repos/content/ /var/www/html
}

ext .md

markdown / {
template templates/default.html
template nice templates/nice.html
}

}
```

When I update `content/templates/nice.html`, without reloading caddy it won't update the template file.

But if I add `then sudo systemctl reload caddy` to `Caddyfile`, it gets trapped to `reload` and `git fetch` loop.

Is it possible to internally somehow reload configuration? Or is it an issue of `markdown` directive?

Hướng dẫn đóng góp

Chưa lập chỉ mục được hướng dẫn đóng góp cho kho mã nguồn này

Đánh giá

Issue này chưa được đánh giá.

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.