From a8dc73b4d9db5edf85e78314c9759b9d12a79b71 Mon Sep 17 00:00:00 2001 From: Matthew Holt Date: Tue, 26 Mar 2019 19:42:52 -0600 Subject: Performance testing Load function --- cmd/caddy2/main.go | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'cmd') 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 {} } -- cgit v1.2.3