summaryrefslogtreecommitdiff
path: root/cmd/ponzu/main.go
diff options
context:
space:
mode:
authorSteve Manuel <nilslice@gmail.com>2016-10-28 12:58:25 -0700
committerSteve Manuel <nilslice@gmail.com>2016-10-28 12:58:25 -0700
commitc178f2e403b0b711d8aa3c0155d1368827f88afd (patch)
tree3550104fd9ed23859947ecce1cff8c41480d6288 /cmd/ponzu/main.go
parent5c187f700fd1e868078d831b53fbfc0e256142b5 (diff)
adding some clean up code and UI toggle for future external vs. internal posted content
Diffstat (limited to 'cmd/ponzu/main.go')
-rw-r--r--cmd/ponzu/main.go6
1 files changed, 6 insertions, 0 deletions
diff --git a/cmd/ponzu/main.go b/cmd/ponzu/main.go
index 48aef9e..234d3b6 100644
--- a/cmd/ponzu/main.go
+++ b/cmd/ponzu/main.go
@@ -11,6 +11,7 @@ import (
"github.com/bosssauce/ponzu/system/admin"
"github.com/bosssauce/ponzu/system/api"
+ "github.com/bosssauce/ponzu/system/api/analytics"
"github.com/bosssauce/ponzu/system/db"
"github.com/bosssauce/ponzu/system/tls"
)
@@ -169,6 +170,11 @@ func main() {
case "serve", "s":
db.Init()
+ defer db.Close()
+
+ analytics.Init()
+ defer analytics.Close()
+
if len(args) > 1 {
services := strings.Split(args[1], ",")