Fast and extensible multi-platform HTTP/1-2-3 web server with automatic HTTPS
Mirrored from https://github.com/Slazee/caddy.git
Synced Nov 14, 05:15 UTC
Add missing run.go (oops)
Matthew Holt committed
May 6, 2019 at 12:43 UTC
fbea3374e96d45b18569a5fe3b86127fd813dbdb
1 file changed
+18
cmd/run.go
new
+18
@@ -0,0 +1,18 @@
1
+package caddycmd
2
+
3
+import (
4
+ "log"
5
+
6
+ "bitbucket.org/lightcodelabs/caddy2"
7
+)
8
+
9
+// Main executes the main function of the caddy command.
10
+func Main() {
11
+ err := caddy2.StartAdmin("127.0.0.1:1234")
12
+ if err != nil {
13
+ log.Fatal(err)
14
+ }
15
+ defer caddy2.StopAdmin()
16
+
17
+ select {}
18
+}