abiosoft / abiosoft/caddy-git

Templates missing before git clone

未关闭
#80 1 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看
主要语言
Go
星标
206
派生
42
PR 合并指标
30 天内没有已合并 PR

描述

I've noticed the following error starting caddy (v0.10.10):
```
Error during parsing: default template parse error: open site/templates/template.html: no such file or directory
```
with the following `Caddyfile`:
```
localhost:8080 {
git github.com/user/site {
hook /push key
}
root site
markdown / {
ext .md
template templates/template.html
}
}
```

Caddy throws the error and exits before the git plugin clones the repo. Would it be possible for the git plugin to defer template loading until the repo is cloned successfully?

贡献指南

这个仓库没有索引到贡献指南

评估

这个 Issue 还没有评估数据。

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。