🐛 fix initialization sequence

pull/548/head
微凉 2021-12-21 00:32:09 +08:00
parent c5e274f52a
commit dc41ceb99b
2 changed files with 2 additions and 1 deletions

View File

@ -25,6 +25,7 @@ func Init() bool {
log.Infof("current password: %s", pass.Value)
return false
}
server.InitIndex()
bootstrap.InitSettings()
bootstrap.InitAccounts()
bootstrap.InitCache()

View File

@ -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")