From 01fca7d568e70ce810e89e14feca973a090d32a6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=88=98=E6=B2=B3?= Date: Mon, 25 Feb 2019 16:41:10 +0800 Subject: [PATCH] nps test bug --- cmd/nps/nps.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/cmd/nps/nps.go b/cmd/nps/nps.go index fb63960..a46b0e4 100644 --- a/cmd/nps/nps.go +++ b/cmd/nps/nps.go @@ -13,7 +13,6 @@ import ( _ "github.com/cnlh/nps/web/routers" "log" "os" - "path/filepath" ) @@ -24,6 +23,7 @@ var ( func main() { flag.Parse() + beego.LoadAppConfig("ini", filepath.Join(common.GetRunPath(), "conf", "nps.conf")) if len(os.Args) > 1 { switch os.Args[1] { case "test": @@ -37,7 +37,6 @@ func main() { return } } - beego.LoadAppConfig("ini", filepath.Join(common.GetRunPath(), "conf", "nps.conf")) if level = beego.AppConfig.String("logLevel"); level == "" { level = "7" }