You've already forked pocketbase
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:
@@ -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 != "" {
|
||||
|
||||
Reference in New Issue
Block a user