diff --git a/alist.go b/alist.go index c2235e1c..138b8eb3 100644 --- a/alist.go +++ b/alist.go @@ -25,6 +25,7 @@ func Init() bool { log.Infof("current password: %s", pass.Value) return false } + server.InitIndex() bootstrap.InitSettings() bootstrap.InitAccounts() bootstrap.InitCache() diff --git a/server/static.go b/server/static.go index 4a845f31..c3d448a7 100644 --- a/server/static.go +++ b/server/static.go @@ -27,7 +27,7 @@ func InitIndex() { } func Static(r *gin.Engine) { - InitIndex() + //InitIndex() assets, err := fs.Sub(public.Public, "assets") if err != nil { log.Fatalf("can't find assets folder")