Fix missing config name bug
This commit is contained in:
parent
63afefa9e8
commit
d715564833
|
@ -122,6 +122,10 @@ func routeHandler() http.Handler {
|
||||||
}
|
}
|
||||||
|
|
||||||
func getConfigName() string {
|
func getConfigName() string {
|
||||||
|
if len(os.Getenv("GO_ENV")) == 0 {
|
||||||
|
return "dev"
|
||||||
|
}
|
||||||
|
|
||||||
ge := strings.ToLower(os.Getenv("GO_ENV"))
|
ge := strings.ToLower(os.Getenv("GO_ENV"))
|
||||||
|
|
||||||
switch {
|
switch {
|
||||||
|
|
Loading…
Reference in New Issue