app: set devel mode earlier
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
parent
1d421465f5
commit
3439ec7c2a
8
run.go
8
run.go
@ -108,6 +108,10 @@ func run() error {
|
||||
return err
|
||||
}
|
||||
|
||||
if *devel {
|
||||
a.SetDevel()
|
||||
}
|
||||
|
||||
a.PrintConfiguration()
|
||||
|
||||
a.SetupRoutes()
|
||||
@ -117,10 +121,6 @@ func run() error {
|
||||
// a.SetConfig(conf)
|
||||
a.SetEmbeds(templates, assets)
|
||||
|
||||
if *devel {
|
||||
a.SetDevel()
|
||||
}
|
||||
|
||||
// // TODO: add check for prometheus config setting.
|
||||
// if true {
|
||||
// // import "github.com/labstack/echo-contrib/prometheus"
|
||||
|
Loading…
Reference in New Issue
Block a user