app: set devel mode earlier
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
leo 2023-05-01 15:47:39 +02:00
parent 1d421465f5
commit 3439ec7c2a
Signed by: wanderer
SSH Key Fingerprint: SHA256:Dp8+iwKHSlrMEHzE3bJnPng70I7LEsa3IJXRH/U+idQ

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"