It runs ASP.NET Core and other .NET Core apps.
[[aspnetcore]]
sshRepoUrl = "git@your.git.server:path/to/repo.git"
csproj = "path/to/your/project.name.csproj"
urls = ["http://localhost:6201/"]
-
sshRepoUrl
(optionalstring
) - if set Ring clones the default branch (usuallymain
) of the specified repo and attempts to build and execute the project specified by thecsproj
key. Ring clones are located at%TEMP%/ring/repos/path/to/repo
. If the clone already exists Ring preformsgit pull
instead. -
csproj
(mandatorystring
) - ifsshRepoUrl
is used thencsproj
must be a relative path and the project is loaded from%TEMP%/ring/repos/path/to/repo/${csProj}
. IfsshRepoUrl
is not set thencsproj
may be either absolute or relative. -
urls
(optionalstring[]
) - one or more URLs that are passed to theASPNETCORE_URLS
env variable
Given project name is project.name
Ring scans project's build ouput for either a project.name.exe
file (.NET Core 3.1) or project.name.dll
. Exes are run directly whereas dlls
are executed using dotnet exec
.
Ring passes the following env variables to the spawned process:
ASPNETCORE_ENVIRONMENT
=Development
ASPNETCORE_URLS
= the value ofurls
from runnable configuration (values joined by;
)
Ring does a simple "is the process alive" check.