From b28bc04a5379c8ab2e02b75ccc27d9a3c261d26b Mon Sep 17 00:00:00 2001 From: ThompsonNye Date: Mon, 16 Jun 2025 17:15:01 +0200 Subject: [PATCH] Add http health check for Angular app To have a better indication in the dashboard as to when the app has actually started, because the dashboard otherwise displays a running state after the launch command has been given, but then the app only begins to compile and takes a few seconds to actually launch --- src/Vegasco.Server.AppHost/Program.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/Vegasco.Server.AppHost/Program.cs b/src/Vegasco.Server.AppHost/Program.cs index 8441f3e..6c3c0c5 100644 --- a/src/Vegasco.Server.AppHost/Program.cs +++ b/src/Vegasco.Server.AppHost/Program.cs @@ -17,6 +17,7 @@ builder .WithReference(api) .WaitFor(api) .WithHttpEndpoint(port: 44200, env: "PORT", isProxied: false) - .WithExternalHttpEndpoints(); + .WithExternalHttpEndpoints() + .WithHttpHealthCheck("/", 200); builder.Build().Run();