Skip to content

Commit

Permalink
Imports the Web Deploy snap-in.
Browse files Browse the repository at this point in the history
  • Loading branch information
ecampidoglio committed Aug 28, 2013
1 parent 5b6435f commit 0071087
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion Deploy/Install-WebApp.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,8 @@ Task DeployApplication -Depends CreatePublishSettings {
}

Task CreatePublishSettings {
Import-PSSnapin WDeploySnapin3.0

New-WDPublishSettings `
-ComputerName $ComputerName `
-Site $WebSiteName `
Expand Down Expand Up @@ -57,7 +59,7 @@ Task CreateWebSite -Depends DeleteWebSite {
Set-ItemProperty $appPoolPath -Name managedRuntimeVersion -Value v4.0
Set-ItemProperty $appPoolPath -Name enable32BitAppOnWin64 -Value $true

$sites = ls IIS:\\Sites
$sites = dir IIS:\\Sites
$maxId = $sites.Id | sort -Descending | select -First 1
New-Website -Id ($maxId + 1) `
-Name $using:WebSiteName `
Expand Down

0 comments on commit 0071087

Please sign in to comment.