Browse Source

Project with executable services only should launch (#583)

pull/584/head
John Luo 6 years ago
committed by GitHub
parent
commit
e53b59a8da
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 22
      src/Microsoft.Tye.Hosting/ProcessRunner.cs

22
src/Microsoft.Tye.Hosting/ProcessRunner.cs

@ -144,19 +144,19 @@ namespace Microsoft.Tye.Hosting
_logger.LogInformation("Building projects failed with exit code {ExitCode}: \r\n" + buildResult.StandardOutput, buildResult.ExitCode);
return;
}
}
foreach (var s in application.Services)
foreach (var s in application.Services)
{
switch (s.Value.ServiceType)
{
switch (s.Value.ServiceType)
{
case ServiceType.Executable:
LaunchService(application, s.Value);
break;
case ServiceType.Project:
LaunchService(application, s.Value);
break;
};
}
case ServiceType.Executable:
LaunchService(application, s.Value);
break;
case ServiceType.Project:
LaunchService(application, s.Value);
break;
};
}
}

Loading…
Cancel
Save