load config from embedded-config if running on embedded mode

This commit is contained in:
A.Unger
2020-03-13 10:51:55 +01:00
parent b1973f379a
commit f0d9b00f38

View File

@@ -35,6 +35,10 @@ func Server(cfg *config.Config) *cli.Command {
cfg.HTTP.Root = strings.TrimSuffix(cfg.HTTP.Root, "/")
}
if c.String("embedded-config") != "" {
config.Embedded(c, cfg)
}
return nil
},
Action: func(c *cli.Context) error {