From e80617d41c1864507be91cc7006c6fdd88c4b3c2 Mon Sep 17 00:00:00 2001 From: Adhityaa Date: Thu, 7 Jun 2018 14:03:17 +0530 Subject: [PATCH] config.go: use a COMMENTO_ prefix --- api/config.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/api/config.go b/api/config.go index a4b0a04..4c45363 100644 --- a/api/config.go +++ b/api/config.go @@ -23,8 +23,10 @@ func parseConfig() error { } for key, value := range defaults { - if os.Getenv(key) == "" { + if os.Getenv("COMMENTO_" + key) == "" { os.Setenv(key, value) + } else { + os.Setenv(key, os.Getenv("COMMENTO_" + key)) } }