web deployment with custom requirements using msdeploy -
i have 2 .net web projects project 1 , project 2. using msdeploy deploy both projects on iis using command line (script). want create structure below while deployment iis
on iis
default web site\mysite\project 1 default web site\mysite\project 2
project 1 contains 10 folders inside example folder 1 , folder 2, ....,folder 10 want convert folder 6 virtual directory having different physical path (pointing project 2) contents.
i using below msdeploy command
msdeploy.exe -verb:sync -source:iisapp='d:\deployment\ui',includeacls=true -dest:iisapp='default web site\mysite\project 1',computername="http://xx.xx.xx.xxx:80/msdeployagentservice",username=xxx,password=xxx
using same msdeploy command project 1 , project 2 both. how can achieve above requirements.
you can use createapp provider convert folder app. regarding physical path change, best option use runcommand provider call appcmd edit physical path site/app.
Comments
Post a Comment