From dc41ceb99bdf003cfe9054eb1b9c15710c21e511 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=BE=AE=E5=87=89?= <927625802@qq.com> Date: Tue, 21 Dec 2021 00:32:09 +0800 Subject: [PATCH] :bug: fix initialization sequence --- alist.go | 1 + server/static.go | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) 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")