Excluding a folder from deployment and from additional file removal
Asked Answered
A

0

6

If a deployment has a folder full of user generated content, I exclude it from publishing in the .pubxml file with:

<ExcludeFoldersFromDeployment>somefoldername</ExcludeFoldersFromDeployment>

If you use the Remove additional files at destination option for deploying, files in this folder are still removed from the live server.

<SkipExtraFilesOnServer>False</SkipExtraFilesOnServer>

Is there any way to make the deployment process, including the clean-up of the live server, ignore a specified folder?

Allnight answered 6/11, 2013 at 14:36 Comment(3)
"Remove additional files at destination" seems to be doing what it is suppose to be doing? What do you get if that is unchecked?Ave
Thanks for your comment. If I uncheck it then none of my deployment is 'cleaned up' by the file removal process. If I refactor some code or script names and deploy, both the old and new are left on the server. If I check the box, all of my user generated content gets cleared, even in excluded folders. It is the combination of the two options together that I am interested in achieving.Allnight
possible duplicate of Specifying folders not to sync in Web DeployArdehs

© 2022 - 2024 — McMap. All rights reserved.