summaryrefslogtreecommitdiff
path: root/cmd/caddy2
diff options
context:
space:
mode:
Diffstat (limited to 'cmd/caddy2')
-rw-r--r--cmd/caddy2/main.go6
1 files changed, 4 insertions, 2 deletions
diff --git a/cmd/caddy2/main.go b/cmd/caddy2/main.go
index 9e482c1..234a88d 100644
--- a/cmd/caddy2/main.go
+++ b/cmd/caddy2/main.go
@@ -5,17 +5,19 @@ import (
"bitbucket.org/lightcodelabs/caddy2"
+ _ "net/http/pprof"
+
// this is where modules get plugged in
_ "bitbucket.org/lightcodelabs/caddy2/modules/caddyhttp"
_ "bitbucket.org/lightcodelabs/dynamicconfig"
)
func main() {
- err := caddy2.Start("127.0.0.1:1234")
+ err := caddy2.StartAdmin("127.0.0.1:1234")
if err != nil {
log.Fatal(err)
}
- defer caddy2.Stop()
+ defer caddy2.StopAdmin()
select {}
}