From ce7dc44721241b669ae7b5ba6c401dc528248cf4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Neven=20Jacmenovi=C4=87?= Date: Sun, 11 Jun 2017 23:41:03 +0200 Subject: delayed indexer init (fix for search not working when addons are enabled) --- cmd/ponzu/main.go | 3 +++ 1 file changed, 3 insertions(+) (limited to 'cmd') 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 { -- cgit v1.2.3