1
mirror of https://gitlab.com/commento/commento.git synced 2025-06-29 22:56:37 -04:00

api: config files have lower precedence than envvars

This commit is contained in:
Adhityaa
2018-06-21 21:08:28 +05:30
parent bb24f62b9c
commit 39940c9f6b
2 changed files with 10 additions and 6 deletions

View File

@ -41,6 +41,10 @@ func configFileLoad(filepath string) error {
continue
}
if os.Getenv(key[9:]) != "" {
continue
}
os.Setenv(key[9:], value)
}