Permalink
Browse files

Config environment variables support

Fixes #435
  • Loading branch information...
evgeniy-b authored and jordansissel committed Apr 9, 2015
1 parent 3b718f0 commit 7790e004d9b2ac602c0f3f48817a2d8ba6b718eb
Showing with 2 additions and 0 deletions.
  1. +2 −0 config.go
View
@@ -125,6 +125,8 @@ func LoadConfig(path string) (config Config, err error) {
return
}
buffer = []byte(os.ExpandEnv(string(buffer)))
err = json.Unmarshal(buffer, &config)
if err != nil {
emit("Failed unmarshalling json: %s\n", err)

0 comments on commit 7790e00

Please sign in to comment.