Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to deploy package (zip) into specific site under IIS using msdeploy

Tags:

msdeploy

Requirement: I have zip package which i need to deploy into specific site (say dev.sitename.org) under IIS.

Earlier , we had site under Default Web Site (under IIS) and we used below command to deploy it. >>msdeploy -verb:sync -source:package="D:\package.zip" -dest:auto

I have tried different provider for -dest , but nothing worked.

Does anyone has idea on this. Please share if any.

like image 515
Chidambaram Subramanian Avatar asked Oct 08 '12 11:10

Chidambaram Subramanian


1 Answers

Try setting a ProviderPath parameter:

msdeploy -verb:sync -source:package="d:\package.zip" ^
         -dest:auto -setParam:kind=ProviderPath,scope=iisApp,value=dev.sitename.org

Your provider might be a contentPath, rather than an iisApp, depending on how you created it. Open the manifest file in the root of the zip to double check.

like image 115
Richard Szalay Avatar answered Oct 24 '22 03:10

Richard Szalay