MS Deploy - Deploying a Folder on a Website

I have a compiled website with the correct web configuration in a folder ready for deployment. FYI is not zip / packaged.

how (or maybe) I use MSDeploy to synchronize a folder with my site (the site supports MS deployment and has been enabled.)

one of my attempts:

msdeploy -verb:sync -source:contentPath="C:\my folder" -dest:iisApp="subdomain.mysite.com" 

which provides this error: ContentPath and iisApp are not compatible for this operation.

I also included the username and password in the destination.

+6
source share
2 answers

Got it to work !!!!

 msdeploy -verb:sync -source:contentPath="C:\my folder" -dest:contentPath="subdomain.mysite.com",wmsvc=hostServer.com,userName=usr,password=pwd -AllowUntrusted 

-wmsvc - the default port is 8172

-AllowUntrusted - allow untrusted certificates

hope this helps any other.

+12
source
Answer

dbones resolves the "ContentPath and iisApp incompatible" error by switching the -dest option to use the contentPath provider, thereby making -source and -dest to have the same provider.

You can alternatively resolve the error by switching the -dest option to use the iisApp option. This works for example:

 msdeploy -verb:sync -source:iisapp="C:\fooapp" -dest:iisapp="MyWebsite/fooapp",computerName=localhost 

One advantage / difference of this method is that the first time you deploy fooapp, it will create MyWebsite / fooapp as the actual web application, and not as a regular directory.

+4
source

Source: https://habr.com/ru/post/911541/


All Articles