繁体   English   中英

结合使用MsDeploy和MsDeployAgentService部署到特定站点

[英]Use MsDeploy with MsDeployAgentService to deploy to a specific site

我正在尝试使用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部署“工作的contentPath ”提供的-源极和-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

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM