Skip to content

Commit

Permalink
Demo3 Fix
Browse files Browse the repository at this point in the history
  • Loading branch information
dhruvigoyal25 committed Dec 9, 2022
1 parent 9fae898 commit 6e6f8b0
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions examples/demo3/src/backend/server/demo3_service.go
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ import (
"fmt"
"net/http"
"net/url"
"path"
"strconv"
"strings"
"sync"
Expand Down Expand Up @@ -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 {
Expand Down

0 comments on commit 6e6f8b0

Please sign in to comment.