问题
I am using TFS 2017 build and realease to deploy a website, In my IIS i have the following Structure
- WebsiteHost
- ApplicationToDeploy
I am using Deploy IIS App
step on TFS realease definition
Question: how can I tell the realease build to update ApplicationToDeploy
under WebsiteHost
? Right now it creates a new Website on WebsiteHost
level which i don't want. I tried WebsiteHost\ApplicationToDeploy in Host name field in the task but that just created a website with Host name WebsiteHost\ApplicationToDeploy. Any Ideas?
Hope I made my issue clear
回答1:
Based on my test, you just need to specify the Website name in Deploy IIS App
step, then it will automatically update the website once any changes are checked in with the CI/CD definitions set.
Assuming the Website name is ApplicationToDeploy, just specify the name under Deployment > Website name
UPDATE:
Make sure the website is existing there, you check in IIS manager.
来源:https://stackoverflow.com/questions/45695063/tfs-2017-release-deploy-app-to-iis-under-a-website