• 0 Posts
  • 2 Comments
Joined 7 个月前
cake
Cake day: 2024年10月1日

help-circle

  • excess0680@lemmy.worldtoSelfhosted@lemmy.worldTIL - Caddy
    link
    fedilink
    English
    arrow-up
    15
    ·
    edit-2
    29 天前

    If you’re using git to version Caddy configuration, you can use a pre-commit hook to test it, ensuring that you’ll never have invalid configuration. That’s what I do.

    caddy validate
    

    There’s some extra command args that may be necessary but that should be an adequate first step.