Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Templates missing before git clone #80

Open
evanpaschke opened this issue Dec 31, 2017 · 1 comment
Open

Templates missing before git clone #80

evanpaschke opened this issue Dec 31, 2017 · 1 comment

Comments

@evanpaschke
Copy link

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?

@abiosoft
Copy link
Owner

Hmmm, except adding the option of allowing the git plugin to block Caddy's startup until successful clone.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants