public override DeploymentResult Deploy() { // Start timer StartTimer(); // Only supports publish and run on IIS. DeploymentParameters.PublishApplicationBeforeDeployment = true; _application = new IISApplication(DeploymentParameters, Logger); DeploymentParameters.DnxRuntime = PopulateChosenRuntimeInformation(); // Publish to IIS root\application folder. DnuPublish(publishRoot: _application.WebSiteRootFolder); // Drop an ini file instead of setting environment variable. SetAspEnvironmentWithIni(); // Setup the IIS Application. if (DeploymentParameters.ServerType == ServerType.IISNativeModule) { TurnRammFarOnNativeModule(); } lock (_syncObject) { // To prevent modifying the IIS setup concurrently. _application.Deploy(); } // Warm up time for IIS setup. Thread.Sleep(1 * 1000); Logger.LogInformation("Successfully finished IIS application directory setup."); return(new DeploymentResult { WebRootLocation = DeploymentParameters.ApplicationPath, DeploymentParameters = DeploymentParameters, // Accomodate the vdir name. ApplicationBaseUri = new UriBuilder(Uri.UriSchemeHttp, "localhost", IISApplication.Port, _application.VirtualDirectoryName).Uri.AbsoluteUri + "/", HostShutdownToken = _hostShutdownToken.Token }); }
public override DeploymentResult Deploy() { // Start timer StartTimer(); // Only supports publish and run on IIS. DeploymentParameters.PublishApplicationBeforeDeployment = true; _application = new IISApplication(DeploymentParameters, Logger); DeploymentParameters.DnxRuntime = PopulateChosenRuntimeInformation(); // Publish to IIS root\application folder. DnuPublish(publishRoot: _application.WebSiteRootFolder); // Drop an ini file instead of setting environment variable. SetAspEnvironmentWithIni(); // Setup the IIS Application. if (DeploymentParameters.ServerType == ServerType.IISNativeModule) { TurnRammFarOnNativeModule(); } lock (_syncObject) { // To prevent modifying the IIS setup concurrently. _application.Deploy(); } // Warm up time for IIS setup. Thread.Sleep(1 * 1000); Logger.LogInformation("Successfully finished IIS application directory setup."); return new DeploymentResult { WebRootLocation = DeploymentParameters.ApplicationPath, DeploymentParameters = DeploymentParameters, // Accomodate the vdir name. ApplicationBaseUri = new UriBuilder(Uri.UriSchemeHttp, "localhost", IISApplication.Port, _application.VirtualDirectoryName).Uri.AbsoluteUri + "/", HostShutdownToken = _hostShutdownToken.Token }; }
public override DeploymentResult Deploy() { // Start timer StartTimer(); // Only supports publish and run on IIS. DeploymentParameters.PublishApplicationBeforeDeployment = true; _application = new IISApplication(DeploymentParameters, Logger); // Publish to IIS root\application folder. DotnetPublish(publishRoot: _application.WebSiteRootFolder); // Drop a json file instead of setting environment variable. SetAspEnvironmentWithJson(); var uri = TestUriHelper.BuildTestUri(); lock (_syncObject) { // To prevent modifying the IIS setup concurrently. _application.Deploy(uri); } // Warm up time for IIS setup. Thread.Sleep(1 * 1000); Logger.LogInformation("Successfully finished IIS application directory setup."); return(new DeploymentResult { WebRootLocation = DeploymentParameters.ApplicationPath, DeploymentParameters = DeploymentParameters, // Accomodate the vdir name. ApplicationBaseUri = uri.ToString(), HostShutdownToken = _hostShutdownToken.Token }); }
public override DeploymentResult Deploy() { // Start timer StartTimer(); // Only supports publish and run on IIS. DeploymentParameters.PublishApplicationBeforeDeployment = true; _application = new IISApplication(DeploymentParameters, Logger); // Publish to IIS root\application folder. DotnetPublish(publishRoot: _application.WebSiteRootFolder); // Drop a json file instead of setting environment variable. SetAspEnvironmentWithJson(); var uri = TestUriHelper.BuildTestUri(); lock (_syncObject) { // To prevent modifying the IIS setup concurrently. _application.Deploy(uri); } // Warm up time for IIS setup. Thread.Sleep(1 * 1000); Logger.LogInformation("Successfully finished IIS application directory setup."); return new DeploymentResult { ContentRoot = DeploymentParameters.PublishedApplicationRootPath, DeploymentParameters = DeploymentParameters, // Accomodate the vdir name. ApplicationBaseUri = uri.ToString(), HostShutdownToken = _hostShutdownToken.Token }; }