diff options
author | Steve <nilslice@gmail.com> | 2016-10-31 00:59:57 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2016-10-31 00:59:57 -0700 |
commit | 645cfa39a92a9f732629f1e3206ca468ff329138 (patch) | |
tree | 89fc417b79394fb4fc58de997194b9730acfefc1 /cmd/ponzu/main.go | |
parent | 96ebcb095797fe4947d647ad1aa7572d84609fc0 (diff) | |
parent | 682cc2b6d9e3524209fbe3d2773fa31e8de9b88d (diff) |
Merge pull request #11 from bosssauce/ponzu-dev
[core] Enable content to be submitted from external clients
Diffstat (limited to 'cmd/ponzu/main.go')
-rw-r--r-- | cmd/ponzu/main.go | 6 |
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], ",") |