I am in the process of building Automated process using TeamCity.My plan is before deploying to prod Server creating a backup folder:
- Stop IIS and copy or Backup IIS website physical path folder VersionNo as X (using Nant or Powershell)
- Rename IIS website physical path folder as VersionNo as X + 1 (using Nant or Powershell) 3.Deploy to IIS website physical path folder X+1
- Restart IIS
How to accomplish this using Nant or PowerShell script in Nant? Any help would be a great help. Thanks
As far as the Powershell script is concerned this script will help with IIS steps and the backup.
The script does the below:
DO NOTE AGAIN THAT THE SCRIPT DOES NOT TAKE CARE OF YOUR DEPLOYMENT. YOU NEED TO DO THE DEPLOYMENT. TILL YOU CARRY OUT THE DEPLOYMENT YOU CAN KEEP THE POWERSHELL SESSION OPEN.
ALSO the script does not remove the contents of the website folder. Please include that step as needed.
Hope this helps.