From 30400754efd96e7bcc3c8339c1134302299e2e53 Mon Sep 17 00:00:00 2001 From: Denis Arh Date: Sun, 14 Jul 2019 14:22:11 +0200 Subject: [PATCH] Fix InitService under monolith build --- monolith/monolith.go | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/monolith/monolith.go b/monolith/monolith.go index 26d441e95..69c58fb14 100644 --- a/monolith/monolith.go +++ b/monolith/monolith.go @@ -30,6 +30,12 @@ func Configure() *cli.Config { return &cli.Config{ ServiceName: "", + InitServices: func(ctx context.Context, c *cli.Config) { + cmp.InitServices(ctx, cmp) + msg.InitServices(ctx, cmp) + sys.InitServices(ctx, cmp) + }, + RootCommandDBSetup: cli.Runners{ func(ctx context.Context, cmd *cobra.Command, c *cli.Config) (err error) { cli.HandleError(cmp.RootCommandDBSetup.Run(ctx, cmd, cmp))