mirror of
https://github.com/AlistGo/alist.git
synced 2025-04-23 22:04:06 +08:00
🐛 fix initialization sequence
This commit is contained in:
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…
x
Reference in New Issue
Block a user