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)
|
log.Infof("current password: %s", pass.Value)
|
||||||
return false
|
return false
|
||||||
}
|
}
|
||||||
|
server.InitIndex()
|
||||||
bootstrap.InitSettings()
|
bootstrap.InitSettings()
|
||||||
bootstrap.InitAccounts()
|
bootstrap.InitAccounts()
|
||||||
bootstrap.InitCache()
|
bootstrap.InitCache()
|
||||||
|
|
|
@ -27,7 +27,7 @@ func InitIndex() {
|
||||||
}
|
}
|
||||||
|
|
||||||
func Static(r *gin.Engine) {
|
func Static(r *gin.Engine) {
|
||||||
InitIndex()
|
//InitIndex()
|
||||||
assets, err := fs.Sub(public.Public, "assets")
|
assets, err := fs.Sub(public.Public, "assets")
|
||||||
if err != nil {
|
if err != nil {
|
||||||
log.Fatalf("can't find assets folder")
|
log.Fatalf("can't find assets folder")
|
||||||
|
|
Loading…
Reference in New Issue