Allow nginx to run with published apps

This commit is contained in:
BrennanConroy 2016-04-15 10:05:13 -07:00
parent d3bc744b3a
commit 90510f5138
1 changed files with 5 additions and 0 deletions

View File

@ -30,6 +30,11 @@ namespace Microsoft.AspNetCore.Server.Testing
var redirectUri = $"http://localhost:{TestUriHelper.FindFreePort()}";
if (DeploymentParameters.PublishApplicationBeforeDeployment)
{
DotnetPublish();
}
var exitToken = StartSelfHost(new Uri(redirectUri));
SetupNginx(redirectUri, uri);