2012-07-18 76 views
0

我想從一個文件夾使用MsDeploy將站點部署到我的Web服務器。 Web服務器安裝了MsDeployAgentService。我能夠使用以下命令將該站點部署到msdeploy。使用MsDeploy和MsDeployAgentService部署到特定的站點

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

但是,我無法弄清楚文件是否被部署到服務器上。我想將文件部署到Web服務器上的特定站點而不是「默認網站」

什麼是msdeploy開關或用於在Web服務器上指定目標站點的選項?

回答

1

我使用Web部署'contentPath'提供程序爲-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 
+0

+1你搖滾!我一直在解決這個問題幾個小時。感謝您發佈命令! – 2013-03-08 22:38:17