From 1613d12be0dff51d4c5aaee995033a0a444d5403 Mon Sep 17 00:00:00 2001 From: "leitao.zhang" Date: Wed, 21 Oct 2020 19:30:34 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E6=95=B0=E6=8D=AE=E5=BA=93?= =?UTF-8?q?=E5=9C=B0=E5=9D=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/main.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/main.go b/src/main.go index dbdf362..c3d568f 100644 --- a/src/main.go +++ b/src/main.go @@ -48,6 +48,9 @@ func initEnv() { if len(os.Getenv("REDIS_CONNECTION")) > 0 { *redisUrl = os.Getenv("REDIS_CONNECTION") } + if len(os.Getenv("DB_URL")) > 0 { + *dbURL = os.Getenv("DB_URL") + } } //注册公共config参数信息 -- 2.26.0