MS Deploy-新的IIS Web部署工具

Months ago, even before I started at Microsoft, I got to talk to some very nice people about a project they were calling AdminX. After I told them that that was very possibly the worst name they could possibly give it (and they took part that very well) we got to dig into what the tool was going to do. As with all great tools it did stuff that we had already written at my last company. It's always nice to throw home-grown tools away if found tools will do the job better.

几个月前,甚至在我进入Microsoft之前,我就已经和一些非常好的人谈论了他们称之为AdminX的项目。 在我告诉他们这可能是最糟糕的名字之后,他们可能会给它起名字(他们参与得很好),我们必须深入研究该工具的作用。 与所有出色的工具一样,它所做的工作也是我们在上一家公司写的。 如果找到的工具可以更好地完成工作,则最好丢掉自家生产的工具。

Anyway, there's a Tech Preview of MS Deploy out for both x86 and x64. It installs a Windows Service, but it doesn't need to be running except when it's doing work so don't panic.

无论如何,对于x86和x64都有MS Deploy技术预览。 它安装了Windows服务,但是除了正在运行时不需要运行,因此不必惊慌。

It's got a metric ton (a good thing) of options. For example, if I want to archive/backup a Site, I go:

它有很多吨的选择(一件好事)。 例如,如果要存档/备份站点,请执行以下操作:

msdeploy.exe" -verb:sync -source:appHostConfig="Default Web Site" -dest:archivedir=c:\mybackup

msdeploy.exe“ -verb:sync -source:appHostConfig =”默认网站“ -dest:archivedir = c:\ mybackup

You can restore just by reversing source and dest. All the settings are maintained and stored in XML.

您可以仅通过反转源和目标来恢复。 所有设置都将维护并存储为XML。

There's other "verbs" to use. For example, you can getDependencies (currently only on IIS6, IIS7 to come) and get details on exactly what your app needs in terms of authentication, filters, modules, etc.

还有其他“动词”可以使用。 例如,您可以获取Dependencies(当前仅在IIS6和IIS7上使用)并获取有关身份验证,筛选器,模块等方面您的应用所需的确切信息。

You can transfer or 'sync' websites or web servers between each other like this:

您可以像这样在彼此之间转移或“同步”网站或Web服务器:

msdeploy -verb:sync -source:webserver,targetName=http://computername/MSDEPLOY/ -dest:webserver > msdeploysync.log

msdeploy -verb:sync -source:webserver,targetName = http://计算机名/ MSDEPLOY / -dest:webserver> msdeploysync.log

Also, because there's a Windows Service involved, you can do remote deploys - that's the part we've all been waiting for. MS Deploy also supports the -whatif flag, showing you what will happen without doing anything. 

另外,由于涉及Windows服务,因此您可以进行远程部署-这是我们一直在等待的部分。 MS Deploy还支持-whatif标志,向您显示不执行任何操作将会发生的情况。

There is also a plan to have a PowerShell cmdlet interface for MS Deploy when it releases, so things are looking up in the IIS space.

还计划在发布时为MS Deploy提供一个PowerShell cmdlet接口,以便在IIS空间中查找事物。

翻译自: https://www.hanselman.com/blog/ms-deploy-new-iis-web-deployment-tool

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值