1
0
mirror of https://github.com/kataras/iris.git synced 2025-12-22 20:37:05 +00:00

simple version checker ✌️

Former-commit-id: 077b9c9816211c84adda864a832acf8c1296eeaf
This commit is contained in:
hiveminded
2017-08-09 17:12:24 +03:00
parent e23f821341
commit be8295eb50
6 changed files with 170 additions and 2 deletions

View File

@@ -647,6 +647,11 @@ func (app *Application) Run(serve Runner, withOrWithout ...Configurator) error {
app.Configure(withOrWithout...)
app.logger.Debugf("Application: running using %d host(s)", len(app.Hosts)+1)
if !app.config.DisableVersionCheck && app.logger.Printer.IsTerminal {
go CheckVersion()
}
// this will block until an error(unless supervisor's DeferFlow called from a Task).
err := serve(app)
if err != nil {