Fix missing config name bug

This commit is contained in:
Vikram Rangnekar 2019-09-29 01:49:13 -04:00
parent 63afefa9e8
commit d715564833
1 changed files with 4 additions and 0 deletions

View File

@ -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 {