Iis 将MsDeploy与MsDeployAgentService一起使用以部署到特定站点

Iis 将MsDeploy与MsDeployAgentService一起使用以部署到特定站点,iis,msdeploy,Iis,Msdeploy,我正在尝试使用MsDeploy将网站从文件夹部署到web服务器。web服务器已安装MsDeployAgentService。我能够使用以下命令将站点部署到msdeploy msdeploy -verb:sync -source:dirPath=C:\src\website -dest:auto,computerName='http://192.168.0.2/MsDeployAgentService',userName=Administrator,password=xxxxxx 但是,我无法

我正在尝试使用MsDeploy将网站从文件夹部署到web服务器。web服务器已安装MsDeployAgentService。我能够使用以下命令将站点部署到msdeploy

msdeploy -verb:sync -source:dirPath=C:\src\website -dest:auto,computerName='http://192.168.0.2/MsDeployAgentService',userName=Administrator,password=xxxxxx 
但是,我无法确定这些文件是部署到服务器上的。我想将文件部署到web服务器上的特定网站,而不是“默认网站”


用于在web服务器上指定目标站点的msdeploy开关或选项是什么?

我使用web Deploy“”提供程序对-source和-dest进行了操作。工作命令如下所示:

msdeploy -verb:sync -source:contentPath=C:\src\website -dest:contentPath="d:\sites\mywebsite",computerName='http://192.168.0.2/MsDeployAgentService',userName=Administrator,password=xxxxxx

+你太棒了!这个问题我已经研究了好几个小时了。谢谢你发布命令!