Reputation: 882
I am trying to deploy a site from a folder to my web server using MsDeploy. The web server has the MsDeployAgentService installed. I was able to deploy the site using the following command to 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'
What is the msdeploy switch or option for specifying the destination site on the web server?
Upvotes: 0
Views: 3728
Reputation: 882
I got it to work using the Web Deploy 'contentPath' provider for both the -source and -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
Upvotes: 1