Search code examples
msdeploy

MS Deploy - deploy a folder to a website


I have a compiled website, with the correct web config in a folder ready to be deployed. FYI its not zip/packaged.

how (or can) I use MSDeploy to sync the folder with my website (the site supports MS deploy and have been enabled.)

one of my attempts have been:

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

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

I have also included the userName and Password on the destination.


Solution

  • 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 - defaults to port 8172

    -AllowUntrusted - to allow untrusted certificates

    hope this helps any one else.