Modified IIS deploy to ignore htaccess, added htaccess, modified Apache
deploy to delete yaml file
This commit is contained in:
		@@ -15,7 +15,7 @@ Apache Deployment:
 | 
				
			|||||||
    - mkdir /var/www/html/enpaul.new
 | 
					    - mkdir /var/www/html/enpaul.new
 | 
				
			||||||
    - rm ./deploy.ps1
 | 
					    - rm ./deploy.ps1
 | 
				
			||||||
    - rm ./web.config
 | 
					    - rm ./web.config
 | 
				
			||||||
    - rm -r ./_archive
 | 
					    - rm ./.gitlab-ci-yml
 | 
				
			||||||
    - cp -r ./* /var/www/html/enpaul.new/
 | 
					    - cp -r ./* /var/www/html/enpaul.new/
 | 
				
			||||||
    - mv /var/www/html/enpaul /var/www/html/enpaul.old
 | 
					    - mv /var/www/html/enpaul /var/www/html/enpaul.old
 | 
				
			||||||
    - mv /var/www/html/enpaul.new /var/www/html/enpaul
 | 
					    - mv /var/www/html/enpaul.new /var/www/html/enpaul
 | 
				
			||||||
 
 | 
				
			|||||||
							
								
								
									
										10
									
								
								.htaccess
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										10
									
								
								.htaccess
									
									
									
									
									
										Normal 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
 | 
				
			||||||
@@ -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") {
 | 
					if (Test-Path "C:\inetpub\wwwroot\enpaul.net.new\.gitignore") {
 | 
				
			||||||
  Remove-Item -Path "C:\inetpub\wwwroot\enpaul.net.new\.gitignore" -Force
 | 
					  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" -NewName "enpaul.net.old" -Force
 | 
				
			||||||
Rename-Item -Path "C:\inetpub\wwwroot\enpaul.net.new" -NewName "enpaul.net" -Force
 | 
					Rename-Item -Path "C:\inetpub\wwwroot\enpaul.net.new" -NewName "enpaul.net" -Force
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user