1
0
mirror of https://github.com/pocketbase/pocketbase.git synced 2025-11-25 07:34:10 +02:00

always register the installer hooks in case the superuser is created by a console command

This commit is contained in:
Gani Georgiev
2024-11-06 14:22:57 +02:00
parent f38700982c
commit e4cd6810ab
3 changed files with 48 additions and 40 deletions

View File

@@ -270,7 +270,12 @@ func Serve(app core.App, config ServeConfig) error {
regular.Printf("└─ Dashboard: %s\n", color.CyanString("%s/_/", fullAddr))
}
go loadInstaller(app, fullAddr)
go func() {
installerErr := loadInstaller(app, fullAddr)
if installerErr != nil {
app.Logger().Warn("Failed to initialize installer", "error", installerErr)
}
}()
var serveErr error
if config.HttpsAddr != "" {