Question

I am using Web Deploy over the web for a large website and it is redeploying all of the images files every on every single deployment which takes quite a while.

I am considering copying the entire web deployment package over first to the server to deploy rather than deploying via a build server.

Is there a setting for Web Deploy so that it the package does not overwrite the images files upon every deploy?

Was it helpful?

Solution

MSDeploy only deploys files that it has deemed as having changed. By default, this involves comparing the files' Last Modified timestamps. If your source control / build process causes these to be updated, but they will always be updated.

There is an alternative. If you pass -useCheckSum to the command line, it will compare the contents of the files (via a checksum).

It would be my preference to fix the issue that's causing your last modified dates to change, though, as -useCheckSum is obviously going to be slower.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top