summaryrefslogtreecommitdiff
path: root/cmd/ponzu/main.go
diff options
context:
space:
mode:
authorSteve Manuel <nilslice@gmail.com>2017-06-12 16:36:30 -0600
committerGitHub <noreply@github.com>2017-06-12 16:36:30 -0600
commit81e1682818b96851a98426de89cbc31441049b24 (patch)
tree4687af83067eb36dbdf691eba22042b15fba2716 /cmd/ponzu/main.go
parente3fb3aba33645ef1c7ba1d1556c806d7c0eb853b (diff)
parent4fbc2b5a6846d5e057aae836dc3cc217aee290e8 (diff)
Merge pull request #161 from ponzu-cms/ponzu-dev
[core] defer search indexing until addons/item types are registered
Diffstat (limited to 'cmd/ponzu/main.go')
-rw-r--r--cmd/ponzu/main.go3
1 files changed, 3 insertions, 0 deletions
diff --git a/cmd/ponzu/main.go b/cmd/ponzu/main.go
index 25e1694..72f0abf 100644
--- a/cmd/ponzu/main.go
+++ b/cmd/ponzu/main.go
@@ -154,6 +154,9 @@ var serveCmd = &cobra.Command{
admin.Docs(docsport)
}
+ // init search index
+ go db.InitSearchIndex()
+
// save the https port the system is listening on
err := db.PutConfig("https_port", fmt.Sprintf("%d", httpsport))
if err != nil {