mirror of
https://github.com/eiblog/eiblog.git
synced 2026-02-07 07:12:27 +08:00
runmode
This commit is contained in:
@@ -28,7 +28,9 @@ var es *ElasticService
|
||||
|
||||
func init() {
|
||||
es = &ElasticService{url: setting.Conf.SearchURL, c: new(http.Client)}
|
||||
initIndex()
|
||||
if setting.Conf.RunMode == setting.PROD {
|
||||
initIndex()
|
||||
}
|
||||
}
|
||||
|
||||
func initIndex() {
|
||||
|
||||
Reference in New Issue
Block a user