Compare commits

..

2 Commits

Author SHA1 Message Date
df93f8299f Update Angular launch profile
All checks were successful
continuous-integration/drone/push Build is passing
2025-06-16 17:16:00 +02:00
b28bc04a53 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
2025-06-16 17:15:01 +02:00
2 changed files with 3 additions and 9 deletions

View File

@@ -3,18 +3,11 @@
"version": "0.2.0", "version": "0.2.0",
"configurations": [ "configurations": [
{ {
"name": "ng serve", "name": "Launch (Chrome)",
"type": "chrome", "type": "chrome",
"request": "launch", "request": "launch",
"preLaunchTask": "npm: start", "preLaunchTask": "npm: start",
"url": "http://localhost:44200/", "url": "http://localhost:44200/",
},
{
"name": "ng test",
"type": "chrome",
"request": "launch",
"preLaunchTask": "npm: test",
"url": "http://localhost:9876/debug.html"
} }
] ]
} }

View File

@@ -17,6 +17,7 @@ builder
.WithReference(api) .WithReference(api)
.WaitFor(api) .WaitFor(api)
.WithHttpEndpoint(port: 44200, env: "PORT", isProxied: false) .WithHttpEndpoint(port: 44200, env: "PORT", isProxied: false)
.WithExternalHttpEndpoints(); .WithExternalHttpEndpoints()
.WithHttpHealthCheck("/", 200);
builder.Build().Run(); builder.Build().Run();