Gave up and added ps script for fucker

This commit is contained in:
Ethan N. Paul 2017-08-29 15:51:53 -04:00
parent d0375328f4
commit 7d73b5c045
2 changed files with 6 additions and 5 deletions

View File

@ -1,9 +1,5 @@
sync_website:
script:
- powershell | New-Item -Path "C:\inetpub\wwwroot\" -Name enpaul.net.new -ItemType Directory -Force
- powershell | Copy-Item -Path .\* -Destination "C:\inetpub\wwwroot\enpaul.net.new\" -Force -Recurse
- powershell | Rename-Item -Path "C:\inetpub\wwwroot\enpaul.net" -NewName "enpaul.net.old" -Force
- powershell | Rename-Item -Path "C:\inetpub\wwwroot\enpaul.net.new" -NewName "enpaul.net" -Force
- powershell | Remove-Item -path "C:\inetpub\wwwroot\enpaul.net.old" -Recurse -Force
- .\deploy.ps1
tags:
- web

5
deploy.ps1 Normal file
View File

@ -0,0 +1,5 @@
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
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