Finalized script for deploy procedure
This commit is contained in:
parent
98952df123
commit
8d733b7608
@ -2,4 +2,4 @@ sync_website:
|
||||
script:
|
||||
- powershell .\deploy.ps1
|
||||
tags:
|
||||
- bad
|
||||
- web
|
||||
|
13
deploy.ps1
13
deploy.ps1
@ -4,12 +4,15 @@ if (Test-Path "C:\inetpub\wwwroot\enpaul.net.new") {
|
||||
|
||||
New-Item -Path "C:\inetpub\wwwroot\" -Name "enpaul.net.new" -ItemType Directory -Force
|
||||
|
||||
#Copy-Item -Path .\* -Destination "C:\inetpub\wwwroot\enpaul.net.new\" -Force -Recurse
|
||||
#Remove-Item -Path "C:\inetpub\wwwroot\enpaul.net.new\.git" -Recurse -Force
|
||||
#Remove-Item -Path "C:\inetpub\wwwroot\enpaul.net.new\.gitlab-ci.yml" -Force
|
||||
#Copy-Item -Path .\deploy.ps1 -Destination "C:\inetpub\wwwroot\enpaul.net.new\" -Force -Recurse
|
||||
Copy-Item -Path ".\*" -Destination "C:\inetpub\wwwroot\enpaul.net.new\" -Force -Recurse
|
||||
|
||||
Remove-Item -Path "C:\inetpub\wwwroot\enpaul.net.new\.git" -Recurse -Force
|
||||
Remove-Item -Path "C:\inetpub\wwwroot\enpaul.net.new\.gitlab-ci.yml" -Force
|
||||
Remove-Item -Path "C:\inetpub\wwwroot\enpaul.net.new\deploy.ps1" -Force
|
||||
Remove-Item -Path "C:\inetpub\wwwroot\enpaul.net.new\"
|
||||
|
||||
Rename-Item -Path "C:\inetpub\wwwroot\enpaul.net" -NewName "enpaul.net.old" -Force
|
||||
Rename-Item -Path "C:\inetpub\wwwroot\enpaul.net.new" -NewName "enpaul.net" -Force
|
||||
|
||||
Remove-Item -path "C:\inetpub\wwwroot\enpaul.net.old" -Recurse -Force
|
||||
#Remove-Item -Path "C:\inetpub\wwwroot\enpaul.net\deploy.ps1" -Force
|
||||
exit
|
||||
|
Loading…
Reference in New Issue
Block a user