From 673630c9d0ee02036ccf9d626dd37996bddce25e Mon Sep 17 00:00:00 2001 From: Jon Edvald Date: Wed, 23 May 2018 21:01:03 +0200 Subject: [PATCH] fix: deploy command would deploy all services from each processed module --- src/commands/deploy.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/commands/deploy.ts b/src/commands/deploy.ts index f31694bcc0..35cec62089 100644 --- a/src/commands/deploy.ts +++ b/src/commands/deploy.ts @@ -55,7 +55,7 @@ export class DeployCommand extends Command const modules = Array.from(new Set(services.map(s => s.module))) const result = await ctx.processModules(modules, watch, async (module) => { - const servicesToDeploy = await module.getServices() + const servicesToDeploy = (await module.getServices()).filter(s => names.includes(s.name)) for (const service of servicesToDeploy) { await ctx.addTask(await DeployTask.factory({ ctx, service, force, forceBuild })) }