mirror of https://github.com/Xhofe/alist
🐛 fix initialization sequence
parent
c5e274f52a
commit
dc41ceb99b
1
alist.go
1
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()
|
||||
|
|
|
@ -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")
|
||||
|
|
Loading…
Reference in New Issue