mirror of
https://github.com/caddyserver/caddy.git
synced 2025-07-09 03:04:57 -04:00
Updated Embedding Caddy in your Go program (markdown)
parent
65c38010b9
commit
8f059eefe8
@ -31,7 +31,8 @@ You can also restart Caddy:
|
||||
```go
|
||||
// On Unix systems, you get graceful restarts.
|
||||
// To use same Caddyfile, just pass in nil.
|
||||
err = instance.Restart(newCaddyfile)
|
||||
// Be sure to replace the old instance with the new one!
|
||||
instance, err = instance.Restart(newCaddyfile)
|
||||
if err != nil {
|
||||
log.Fatal(err)
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user