This is one of the greatest and most simplest tools\tips for upgrading or deploying site code which I use almost everyday.
Basically you are creating a new folder on the server and copying all the existing files and folders for your site to the new folder and the best part is this includes the permissions. Then all you do is re-point your site or virtual directory to the new folder and since the home directory path was set to new folder there is no need for an application pool recycle and you will never suffer the dreaded dll lock. Another great thing about this is you can roll back in a jiffy if needed which is really nice for that unexpected oops when deploying to production.
What I do is use the date for naming the folders which also makes it easy to remember when the site was last updated. So for example I would use 052808 for updating a site today. Create a batch file called newfolder.bat with the following command: just edit the path to fit your needs.
xcopy C:\Sites\mywebsite\050808 C:\Sites\mywebsite\052808 /o /e /y /c /i
After running the batch file then deploy your updated site files to the new folder replacing any existing files and folders with the same name. More info can be found here in this kb.
Posted to Technology
Similar Posts
- Single Blog Only - Community Server 2.1
- Community Server 2.1 SP1 Released!
- Configuring Permissions on Windows Server 2003 - ASP.NET and CommunityServer