diff --git a/cmd/server/main.go b/cmd/server/main.go index c42da60cdaf1c92df13e74382e6e4088db2f0f56..1c130515ba798c7eff879dd2773fabbbd7d78284 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 {