diff options
author | Neven Jacmenović <neven@nivas.hr> | 2017-06-11 23:41:03 +0200 |
---|---|---|
committer | Neven Jacmenović <neven@nivas.hr> | 2017-06-11 23:41:03 +0200 |
commit | ce7dc44721241b669ae7b5ba6c401dc528248cf4 (patch) | |
tree | dfce4159465b6dd4b86c714edfd59a11555a2a5e /cmd | |
parent | e3fb3aba33645ef1c7ba1d1556c806d7c0eb853b (diff) |
delayed indexer init (fix for search not working when addons are enabled)
Diffstat (limited to 'cmd')
-rw-r--r-- | cmd/ponzu/main.go | 3 |
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 { |