summaryrefslogtreecommitdiff
path: root/cmd
diff options
context:
space:
mode:
authorMatthew Holt <mholt@users.noreply.github.com>2019-03-26 19:42:52 -0600
committerMatthew Holt <mholt@users.noreply.github.com>2019-03-26 19:42:52 -0600
commita8dc73b4d9db5edf85e78314c9759b9d12a79b71 (patch)
treec1283aa94e2b2d605985130cdef070a24d03815e /cmd
parent86e2d1b0a48fbd84590291969611f1870471c3e0 (diff)
Performance testing Load function
Diffstat (limited to 'cmd')
-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 {}
}