Biser C.
Biser C.

Reputation: 553

how to deploy portion of my site only

I have a following set of files/folders that I need to deploy to my web site

+---App_Browsers
+---bin
+---Config
+---Development
+---static
+---xsl
web.config
404.html
500.html

I would like to sync the files/folder with the one of the server and I don't want to erase any other file, folder on the server. Ideally I would use
msdeploy -verb:sync, because I want the folder that I'm deploying to be synchronized, but I want to preserve the existing folders on the site. -skip is not an option too, because the existing folders are dynamic, we have CMS system that might be changing files/folders on the fly.

Upvotes: 0

Views: 56

Answers (1)

John Saunders
John Saunders

Reputation: 161783

This is not a complete answer, but try -enableRule:DoNotDeleteRule:

msdeploy -verb:sync -source:package=package.zip -dest:auto -enableRule:DoNotDeleteRule

Upvotes: 1

Related Questions