summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSteve Manuel <nilslice@gmail.com>2016-10-03 15:55:28 -0700
committerSteve Manuel <nilslice@gmail.com>2016-10-03 15:55:28 -0700
commit245651a21c9f9b398a90f4331e36eb14bcddef45 (patch)
treedc8b05ad1570f88310acce17f658d593cfa18cf3
parenta92a46a783d1928d5ba817d80dab468119da749f (diff)
realized (duh) to put api/admin on diff goroutines and run together
-rw-r--r--cmd/cms/main.go5
1 files changed, 3 insertions, 2 deletions
diff --git a/cmd/cms/main.go b/cmd/cms/main.go
index 1da0db8..2174b43 100644
--- a/cmd/cms/main.go
+++ b/cmd/cms/main.go
@@ -6,6 +6,7 @@ import (
"os"
"github.com/nilslice/cms/system/admin"
+ "github.com/nilslice/cms/system/api"
"github.com/nilslice/cms/system/db"
)
@@ -98,8 +99,8 @@ func main() {
}
case "serve", "s":
db.Init()
- admin.Run("8080")
- // api.Run("8000")
+ go admin.Run("8080")
+ api.Run("8000")
case "":
flag.PrintDefaults()