Skip to content

Commit

Permalink
Config environment variables support
Browse files Browse the repository at this point in the history
Fixes #435
  • Loading branch information
evgeniy-b authored and jordansissel committed Jul 14, 2015
1 parent 3b718f0 commit 7790e00
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions config.go
Expand Up @@ -125,6 +125,8 @@ func LoadConfig(path string) (config Config, err error) {
return return
} }


buffer = []byte(os.ExpandEnv(string(buffer)))

err = json.Unmarshal(buffer, &config) err = json.Unmarshal(buffer, &config)
if err != nil { if err != nil {
emit("Failed unmarshalling json: %s\n", err) emit("Failed unmarshalling json: %s\n", err)
Expand Down

0 comments on commit 7790e00

Please sign in to comment.