From f2351dfb3dc762b643ddf895c6efb57bee0e8da9 Mon Sep 17 00:00:00 2001 From: kzkzzzz Date: Wed, 8 Jun 2022 14:13:16 +0800 Subject: [PATCH] change --- cmd/server/main.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/cmd/server/main.go b/cmd/server/main.go index c42da60..1c13051 100644 --- a/cmd/server/main.go +++ b/cmd/server/main.go @@ -5,7 +5,6 @@ import ( "os" "github.com/go-kratos/kratos-layout/internal/conf" - "github.com/go-kratos/kratos/v2" "github.com/go-kratos/kratos/v2/config" "github.com/go-kratos/kratos/v2/config/file" "github.com/go-kratos/kratos/v2/log" @@ -27,7 +26,7 @@ var ( ) func init() { - flag.StringVar(&flagconf, "conf", "../../configs", "config path, eg: -conf config.yaml") + flag.StringVar(&flagconf, "conf", "", "config path, eg: -conf config.yaml") } func newApp(logger log.Logger, hs *http.Server, gs *grpc.Server) *kratos.App { -- 2.22.0