使用MSDeploy持续部署IIS设置 [英] Continuous deployment of IIS settings with MSDeploy

查看:213
本文介绍了使用MSDeploy持续部署IIS设置的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我们使用TFS(2008)进行持续部署,并且正在寻找一种处理IIS设置更改的好方法。 MSDeploy似乎应该是处理这个问题的方法,但经过大量的阅读和搜索,我还没有找到一个好的答案。

We practice continuous deployment with TFS (2008) and are looking for a nice way to handle IIS settings changes. MSDeploy seems like it should be the way to handle this, but after much reading and searching, I haven't found a good answer.

MSDeploy的问题,因为我看到它,您需要使用现有的IIS网站创建部署包。我希望能够在源代码管理中为网站提供适当的IIS配置,并让构建创建包。

The problem with MSDeploy, as I see it, is that you need to create a deployment package using an existing IIS website. I would like to be able to have the appropriate IIS configuration for the website in source control and have the build create the package.

我能看到这样做的唯一方法是手工制作archive.xml文件。我的想法是正确的还是有更好的方法?

The only way I can see to do this is to hand craft the archive.xml file. Is my thinking correct or is there a better way?

推荐答案

我最终使用了PowerShell网络管理模块(使用PSake进行构建) ) 去做这个。我仍然希望以声明的方式这样做。

I ended up using powershell web administration module (with PSake for the build) to do this. I would still prefer to do this in a declarative manner.

这篇关于使用MSDeploy持续部署IIS设置的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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