set embeds early to prevent nil pointer derefs
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
leo 2023-05-11 04:40:10 +02:00
parent 122ea638c9
commit 355f09bf5a
Signed by: wanderer
SSH Key Fingerprint: SHA256:Dp8+iwKHSlrMEHzE3bJnPng70I7LEsa3IJXRH/U+idQ

3
run.go

@ -151,12 +151,13 @@ func run() error {
a.PrintConfiguration() a.PrintConfiguration()
a.SetEmbeds(templates, assets)
a.SetupRoutes() a.SetupRoutes()
a.SetEchoSettings() a.SetEchoSettings()
// a.SetConfig(conf) // a.SetConfig(conf)
a.SetEmbeds(templates, assets)
// // TODO: add check for prometheus config setting. // // TODO: add check for prometheus config setting.
// if true { // if true {