背景
本着持续集成的精神,我尝试使用 Web 部署项目来自动化我们的部署过程。 大多数情况下,这都是无痛的。 大多数选项都是内置的,而那些不容易通过 MSBuild XML 界面添加的选项。
但是,我似乎找不到部署到远程 IIS 服务器的选项。 这对我来说似乎很奇怪,因为我显然不希望我的所有构建都在我的生产/登台服务器上运行。
问题
如何设置 Web 部署项目以在远程计算机上创建/覆盖 IIS 虚拟目录?
注释
我使用的是 Visual Studio 2008
和 .net 3.0
。
[编辑]
正如下面 x0n 所建议的,我可以使用 MS Deploy 来实现此目的。 不过,我宁愿使用 Web 部署项目,特别是因为我们已经设置了这些项目。 :)
Background
In the spirit of continuous integration, I'm trying to automate our deployment process using a Web Deployment Project. Mostly, this has been painless. Most options were baked in and those that weren't were easy to add through the MSBuild XML interface.
However, I cannot seem to find an option for deploying to a remote IIS Server. This seems strange to me because I obviously don't want all my builds to run on my production/staging server.
The Question
How can I set up my Web Deployment project to create/overwrite an IIS Virtual Directory on a remote machine?
Notes
I am using Visual Studio 2008
and .net 3.0
.
[Edit]
As suggested by x0n below, I could use MS Deploy for this. I would rather use a Web Deployment Project though, especially since we already have those set up. :)
发布评论
评论(1)
最好的选择是看看 MS Deploy,它现在可以作为 RC 级别的独立包使用。 它附带了上线许可证,这意味着它将与 Visual Studio 2010 附带的版本兼容。一些信息:
http://blogs.iis.net/msdeploy/default.aspx
这是一个很棒的工具 - 将同步远程服务器、农场等,拾取丢失的元数据库信息、com 对象、注册表、.net 组件在 bin 或 gac 中,数据库 - 整个猪。 它还附带交互式 shell 和 powershell cmdlet。
-奥辛
Your best bet is to take a look at MS Deploy which is available as a stand-alone package right now at RC level. It ships with a Go-Live license, which means it will be compatible with the version shipping with Visual Studio 2010. Some info:
http://blogs.iis.net/msdeploy/default.aspx
It's a great tool - will sync remote servers, farms etc picking up missing metabase info, com objects, registry, .net components in bin or gac, databases - the whole hog. It also ships with an interactive shell and powershell cmdlets.
-Oisin