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