Documentation ¶
Index ¶
Constants ¶
View Source
const ( // AspNetCoreUrls is the canonical way to set the port for ASP.NET Core // 6.0: https://docs.microsoft.com/en-us/aspnet/core/fundamentals/host/web-host?view=aspnetcore-6.0#server-urls // 5.0: https://docs.microsoft.com/en-us/aspnet/core/fundamentals/host/web-host?view=aspnetcore-5.0#server-urls-1 // 3.1: https://docs.microsoft.com/en-us/aspnet/core/fundamentals/host/web-host?view=aspnetcore-3.1#server-urls-2 AspNetCoreUrls = "ASPNETCORE_URLS" )
Variables ¶
This section is empty.
Functions ¶
func ChoosePort ¶
ChoosePort will choose a port for the .NET Core application. If an environment variable `ASPNETCORE_URLS` already exists, no further action is taken. Otherwise, the `PORT` environment variable is chosen. If neither `ASPNETCORE_URLS` nor `PORT` is defined, `8080` is chosen.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.