簡體   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