0

我正在尝试使用 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 开关或选项是什么?

4

1 回答 1

1

我使用-source 和 -dest的 Web Deploy ' contentPath ' 提供程序让它工作。工作命令如下所示:

msdeploy -verb:sync -source:contentPath=C:\src\website -dest:contentPath="d:\sites\mywebsite",computerName='http://192.168.0.2/MsDeployAgentService',userName=Administrator,password=xxxxxx
于 2012-07-19T13:52:06.893 回答