mirror of https://github.com/Xhofe/alist
✨ change log
parent
59b8f1084a
commit
fe73ece57d
6
alist.go
6
alist.go
|
@ -52,9 +52,9 @@ func main() {
|
|||
}
|
||||
r := gin.Default()
|
||||
server.InitApiRouter(r)
|
||||
|
||||
log.Info("starting server")
|
||||
err := r.Run(fmt.Sprintf("%s:%d", conf.Conf.Address, conf.Conf.Port))
|
||||
base := fmt.Sprintf("%s:%d", conf.Conf.Address, conf.Conf.Port)
|
||||
log.Info("start server @ %s", base)
|
||||
err := r.Run(base)
|
||||
if err != nil {
|
||||
log.Errorf("failed to start: %s", err.Error())
|
||||
}
|
||||
|
|
|
@ -71,7 +71,7 @@ func InitModel() {
|
|||
default:
|
||||
log.Fatalf("not supported database type: %s", databaseConfig.Type)
|
||||
}
|
||||
log.Infof("auto migrate model")
|
||||
log.Infof("auto migrate model...")
|
||||
err := conf.DB.AutoMigrate(&model.SettingItem{}, &model.Account{}, &model.Meta{})
|
||||
if err != nil {
|
||||
log.Fatalf("failed to auto migrate")
|
||||
|
|
Loading…
Reference in New Issue