Updated dev deployment to use dev directory on IIS server
This commit is contained in:
parent
8cab2d4e6b
commit
c69fe44fdd
36
.ci-dev.ps1
36
.ci-dev.ps1
@ -1,34 +1,34 @@
|
||||
if (Test-Path "C:\inetpub\wwwroot\build-tmp.enpaul-dev") {
|
||||
Remove-Item -Path "C:\inetpub\wwwroot\build-tmp.enpaul-dev" -Recurse -Force
|
||||
if (Test-Path "C:\inetpub\wwwroot\dev\build-tmp.enpaul-dev") {
|
||||
Remove-Item -Path "C:\inetpub\wwwroot\dev\build-tmp.enpaul-dev" -Recurse -Force
|
||||
}
|
||||
|
||||
New-Item -Path "C:\inetpub\wwwroot\" -Name "build-tmp.enpaul-dev" -ItemType Directory -Force
|
||||
New-Item -Path "C:\inetpub\wwwroot\dev\" -Name "build-tmp.enpaul-dev" -ItemType Directory -Force
|
||||
|
||||
Copy-Item -Path ".\*" -Destination "C:\inetpub\wwwroot\build-tmp.enpaul-dev\" -Force -Recurse
|
||||
Copy-Item -Path ".\*" -Destination "C:\inetpub\wwwroot\dev\build-tmp.enpaul-dev\" -Force -Recurse
|
||||
|
||||
if (Test-Path "C:\inetpub\wwwroot\build-tmp.enpaul-dev\.git") {
|
||||
Remove-Item -Path "C:\inetpub\wwwroot\build-tmp.enpaul-dev\.git" -Recurse -Force
|
||||
if (Test-Path "C:\inetpub\wwwroot\dev\build-tmp.enpaul-dev\.git") {
|
||||
Remove-Item -Path "C:\inetpub\wwwroot\dev\build-tmp.enpaul-dev\.git" -Recurse -Force
|
||||
}
|
||||
if (Test-Path "C:\inetpub\wwwroot\build-tmp.enpaul-dev\.gitlab-ci.yml") {
|
||||
Remove-Item -Path "C:\inetpub\wwwroot\build-tmp.enpaul-dev\.gitlab-ci.yml" -Force
|
||||
if (Test-Path "C:\inetpub\wwwroot\dev\build-tmp.enpaul-dev\.gitlab-ci.yml") {
|
||||
Remove-Item -Path "C:\inetpub\wwwroot\dev\build-tmp.enpaul-dev\.gitlab-ci.yml" -Force
|
||||
}
|
||||
|
||||
Remove-Item -Path "C:\inetpub\wwwroot\build-tmp.enpaul-dev\*.ps1" -Force
|
||||
Remove-Item -Path "C:\inetpub\wwwroot\dev\build-tmp.enpaul-dev\*.ps1" -Force
|
||||
|
||||
if (Test-Path "C:\inetpub\wwwroot\build-tmp.enpaul-dev\.gitignore") {
|
||||
Remove-Item -Path "C:\inetpub\wwwroot\build-tmp.enpaul-dev\.gitignore" -Force
|
||||
if (Test-Path "C:\inetpub\wwwroot\dev\build-tmp.enpaul-dev\.gitignore") {
|
||||
Remove-Item -Path "C:\inetpub\wwwroot\dev\build-tmp.enpaul-dev\.gitignore" -Force
|
||||
}
|
||||
if (Test-Path "C:\inetpub\wwwroot\build-tmp.enpaul-dev\.htaccess") {
|
||||
Remove-Item -Path "C:\inetpub\wwwroot\build-tmp.enpaul-dev\.htaccess" -Force
|
||||
if (Test-Path "C:\inetpub\wwwroot\dev\build-tmp.enpaul-dev\.htaccess") {
|
||||
Remove-Item -Path "C:\inetpub\wwwroot\dev\build-tmp.enpaul-dev\.htaccess" -Force
|
||||
}
|
||||
|
||||
if (Test-Path "C:\inetpub\wwwroot\enpaul-dev") {
|
||||
Rename-Item -Path "C:\inetpub\wwwroot\enpaul-dev" -NewName "enpaul-dev.old" -Force
|
||||
if (Test-Path "C:\inetpub\wwwroot\dev\enpaul-dev") {
|
||||
Rename-Item -Path "C:\inetpub\wwwroot\dev\enpaul-dev" -NewName "enpaul-dev.old" -Force
|
||||
}
|
||||
|
||||
Rename-Item -Path "C:\inetpub\wwwroot\build-tmp.enpaul-dev" -NewName "enpaul-dev" -Force
|
||||
Rename-Item -Path "C:\inetpub\wwwroot\dev\build-tmp.enpaul-dev" -NewName "enpaul-dev" -Force
|
||||
|
||||
if (Test-Path "C:\inetpub\wwwroot\enpaul-dev.old") {
|
||||
Remove-Item -path "C:\inetpub\wwwroot\enpaul-dev.old" -Recurse -Force
|
||||
if (Test-Path "C:\inetpub\wwwroot\dev\enpaul-dev.old") {
|
||||
Remove-Item -path "C:\inetpub\wwwroot\dev\enpaul-dev.old" -Recurse -Force
|
||||
}
|
||||
exit
|
||||
|
Loading…
Reference in New Issue
Block a user