Код: Выделить всё
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.
Будем благодарны за любую помощь. Спасибо!
Я представляю порт в Program.cs следующим образом —
Код: Выделить всё
var port = Environment.GetEnvironmentVariable("PORT") ?? "8080";
var url = $"http://0.0.0.0:{port}";
app.Run(url);
Подробнее здесь: https://stackoverflow.com/questions/791 ... g-to-net-9
Мобильная версия