简体   繁体   English

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

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

I am trying to deploy a site from a folder to my web server using MsDeploy. 我正在尝试使用MsDeploy将站点从文件夹部署到Web服务器。 The web server has the MsDeployAgentService installed. Web服务器已安装MsDeployAgentService。 I was able to deploy the site using the following command to msdeploy. 我可以使用以下命令将站点部署到msdeploy。

msdeploy -verb:sync -source:dirPath=C:\src\website -dest:auto,computerName='http://192.168.0.2/MsDeployAgentService',userName=Administrator,password=xxxxxx 

However, I can't figure out were the files were deployed to on the server. 但是,我不知道文件是否已部署到服务器上。 I would like to deploy the files to a specific site on the web server rather than the 'Default Web Site' 我想将文件部署到Web服务器上的特定站点,而不是“默认网站”

What is the msdeploy switch or option for specifying the destination site on the web server? 用于在Web服务器上指定目标站点的msdeploy开关或选项是什么?

I got it to work using the Web Deploy ' contentPath ' provider for both the -source and -dest. 我得到了它使用Web部署“工作的contentPath ”提供的-源极和-dest两者。 The working command looks like this: 工作命令如下所示:

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