From 245651a21c9f9b398a90f4331e36eb14bcddef45 Mon Sep 17 00:00:00 2001 From: Steve Manuel Date: Mon, 3 Oct 2016 15:55:28 -0700 Subject: realized (duh) to put api/admin on diff goroutines and run together --- cmd/cms/main.go | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'cmd') 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() -- cgit v1.2.3