mirror of
https://github.com/caddyserver/caddy.git
synced 2024-12-26 21:53:48 +03:00
Add missing run.go (oops)
This commit is contained in:
parent
2eb3593327
commit
fbea3374e9
1 changed files with 18 additions and 0 deletions
18
cmd/run.go
Normal file
18
cmd/run.go
Normal file
|
@ -0,0 +1,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 {}
|
||||
}
|
Loading…
Reference in a new issue