Skip to content
This repository was archived by the owner on Dec 19, 2018. It is now read-only.

Commit 90510f5

Browse files
committed
Allow nginx to run with published apps
1 parent d3bc744 commit 90510f5

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/Microsoft.AspNetCore.Server.Testing/Deployers/NginxDeployer.cs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,11 @@ public override DeploymentResult Deploy()
3030

3131
var redirectUri = $"http://localhost:{TestUriHelper.FindFreePort()}";
3232

33+
if (DeploymentParameters.PublishApplicationBeforeDeployment)
34+
{
35+
DotnetPublish();
36+
}
37+
3338
var exitToken = StartSelfHost(new Uri(redirectUri));
3439

3540
SetupNginx(redirectUri, uri);

0 commit comments

Comments
 (0)