-
Notifications
You must be signed in to change notification settings - Fork 6
/
DeployToSite.ps1
18 lines (15 loc) · 1.07 KB
/
DeployToSite.ps1
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
$Webroot = "C:\inetpub\wwwroot\dh9.local"
Copy-Item "$PSScriptRoot\Source\TokenManager\Tokens.config" "$(New-Item "$Webroot\App_Config\Include\TokenManagerTest" -ItemType directory -Force)/Tokens.config" -Force
Get-ChildItem "$PSScriptRoot\Source\TokenManager\bin\Debug" | Foreach-Object{
Write-Host "moving $($_.FullName) to bin root" -ForegroundColor Green
Copy-Item $_.FullName "$Webroot\bin\$(Split-Path $_.FullName -Leaf)" -Force
}
Copy-Item "$PSScriptRoot\TokenManagerDemo\TokenDemo.config" "$(New-Item "$Webroot\App_Config\Include\TokenManagerTest" -ItemType directory -Force)/TokenDemo.config" -Force
Get-ChildItem "$PSScriptRoot\TokenManagerDemo\bin\Debug" | Foreach-Object{
Write-Host "moving $($_.FullName) to bin root" -ForegroundColor Green
Copy-Item $_.FullName "$Webroot\bin\$(Split-Path $_.FullName -Leaf)" -Force
}
New-Item "$Webroot\Views\Tokens" -ItemType "directory" -Force
Get-ChildItem "D:\Development\SCTokenManager\TokenManagerDemo" -Recurse -Filter "*.cshtml" | Foreach-Object {
Copy-Item $_.FullName "$Webroot\Views\Tokens\$(Split-Path $_.FullName -Leaf)" -Force
}