Modified IIS deploy to ignore htaccess, added htaccess, modified Apache

deploy to delete yaml file
This commit is contained in:
Ethan N. Paul 2017-12-21 18:20:17 -05:00
parent 864223344f
commit e69eb62caf
3 changed files with 14 additions and 1 deletions

View File

@ -15,7 +15,7 @@ Apache Deployment:
- mkdir /var/www/html/enpaul.new
- rm ./deploy.ps1
- rm ./web.config
- rm -r ./_archive
- rm ./.gitlab-ci-yml
- cp -r ./* /var/www/html/enpaul.new/
- mv /var/www/html/enpaul /var/www/html/enpaul.old
- mv /var/www/html/enpaul.new /var/www/html/enpaul

10
.htaccess Normal file
View File

@ -0,0 +1,10 @@
ErrorDocument 401 /401.html
ErrorDocument 403 /403.html
ErrorDocument 404 /404.html
ErrorDocument 405 /405.html
ErrorDocument 406 /406.html
ErrorDocument 412 /412.html
ErrorDocument 500 /500.html
ErrorDocument 501 /501.html
ErrorDocument 502 /502.html

View File

@ -18,6 +18,9 @@ if (Test-Path "C:\inetpub\wwwroot\enpaul.net.new\deploy.ps1") {
if (Test-Path "C:\inetpub\wwwroot\enpaul.net.new\.gitignore") {
Remove-Item -Path "C:\inetpub\wwwroot\enpaul.net.new\.gitignore" -Force
}
if (Test-Path "C:\inetpub\wwwroot\enpaul.net.new\.htaccess") {
Remove-Item -Path "C:\inetpub\wwwroot\enpaul.net.new\.htaccess" -Force
}
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