diff --git a/examples/demo3/src/backend/server/demo3_service.go b/examples/demo3/src/backend/server/demo3_service.go index a93d86d37..f73b06c93 100644 --- a/examples/demo3/src/backend/server/demo3_service.go +++ b/examples/demo3/src/backend/server/demo3_service.go @@ -23,6 +23,7 @@ import ( "fmt" "net/http" "net/url" + "path" "strconv" "strings" "sync" @@ -119,6 +120,8 @@ func Init(envPath string, envName string) (port string, err error) { // Retrieve environmental variable var config util.Config + // trim file extension + envName = strings.TrimSuffix(envName, path.Ext(envName)) log.Info("Using config values from ", envPath, "/", envName) config, err = util.LoadConfig(envPath, envName) if err != nil {