mirror of https://github.com/gofiber/fiber.git
👷 start process before prefork server starting
parent
267fd5ec59
commit
ecb95fbffc
|
@ -51,6 +51,9 @@ func (app *App) prefork(addr string, tlsConfig *tls.Config) (err error) {
|
|||
// kill current child proc when master exits
|
||||
go watchMaster()
|
||||
|
||||
// prepare the server for the start
|
||||
app.startupProcess()
|
||||
|
||||
// listen for incoming connections
|
||||
return app.server.Serve(ln)
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue