I am deploying my Blazor Server app via Google Cloud Run. But it has been failing since I updated my project to .NET 9. Do I need to make any specific settings on gCloud? The error I am getting is
The user-provided container failed to start and listen on the port defined provided by the PORT=8080 environment variable within the allocated timeout. This can happen when the container port is misconfigured or if the timeout is too short.Maybe I am misinterpreting this issue, but the app used to work on port 8080 and it is indeed exposed. What could it be?
Any help would be appreciated. Thanks!
I am exposing the port like this in Program.cs -
var port = Environment.GetEnvironmentVariable("PORT") ?? "8080";var url = $"http://0.0.0.0:{port}";app.Run(url);And I have also set the port to 8080 in gCloud Run Service as well.