summaryrefslogtreecommitdiff
path: root/cmd/run.go
blob: d19fb194e10b162806c7d7a864398c4657727a01 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
package caddycmd

import (
	"log"

	"bitbucket.org/lightcodelabs/caddy2"
)

// Main executes the main function of the caddy command.
func Main() {
	err := caddy2.StartAdmin("127.0.0.1:1234")
	if err != nil {
		log.Fatal(err)
	}
	defer caddy2.StopAdmin()

	select {}
}