TFS 2017-在网站下发布将应用程序部署到IIS [英] TFS 2017- Release deploy app to IIS under a website

查看:54
本文介绍了TFS 2017-在网站下发布将应用程序部署到IIS的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用TFS 2017构建和重新部署来部署网站,在我的IIS中,我具有以下结构

I am using TFS 2017 build and realease to deploy a website, In my IIS i have the following Structure

 - WebsiteHost
   - ApplicationToDeploy

我在TFS重新实现定义上使用 Deploy IIS App 步骤

I am using Deploy IIS App step on TFS realease definition

问题:如何告诉Realease构建更新 WebsiteHost 下的 ApplicationToDeploy ?现在,它在 WebsiteHost 级别上创建了一个我不希望的新网站.我在任务的主机名"字段中尝试了 WebsiteHost \ ApplicationToDeploy ,但这只是创建了一个主机名为 WebsiteHost \ ApplicationToDeploy 的网站.有任何想法吗?

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?

希望我的问题很清楚

推荐答案

根据我的测试,您只需要在 Deploy IIS App 步骤中指定网站名称,然后在设置了CI/CD定义后,一旦进行了任何更改,它将自动更新网站.

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.

假设网站名称为 ApplicationToDeploy ,只需在 Deployment>下指定名称即可.网站名称

Assuming the Website name is ApplicationToDeploy, just specify the name under Deployment > Website name

更新:

确保网站存在于此,然后签入IIS管理器.

Make sure the website is existing there, you check in IIS manager.

这篇关于TFS 2017-在网站下发布将应用程序部署到IIS的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆