TFS 在构建时将网站部署到 IIS 6
我是 TFS 新手,我正在尝试设置我的构建服务器以自动将网站部署到运行 IIS 6 的本地测试服务器。
我已在目标服务器(即 Win2k3 和 IIS6)上安装了 Web 部署远程代理(顺便说一句已启动),我已将构建定义的 MSBuild 参数设置为:
/p:DeployOnBuild=true
/p:DeployTarget=MSDeployPublish
/p:MSDeployPublishMethod=RemoteAgent
/p:DeployIisAppPath="默认网站"
/p:MsDeployServiceUrl="http://devserver/msdeployagentservice"
/p:用户名=DOMAIN \
Admin.用户名 / p:password=密码
/p:InincludeIisSettingsOnPublish = false
当我对构建进行排队时,它说它构建得很好,但它尚未向服务器发布任何内容。查看构建日志,即使尝试发布,我也看不到任何证据?
任何建议表示赞赏!这些东西的文档似乎很少,特别是部署到 IIS 6 时。
更新
正如下面的评论表明它不适用于网站项目,我现在已经尝试使用 MVC 3 应用程序,而且它似乎仍然没有尝试发布它。
I'm new to TFS and I'm trying to set up my build server to automatically deploy a website to a local test server running IIS 6.
I've installed web deploy on the destination server (which is Win2k3 & IIS6) with the remote agent (which is started btw), and I've set my build definition's MSBuild Arguments to:
/p:DeployOnBuild=true
/p:DeployTarget=MSDeployPublish
/p:MSDeployPublishMethod=RemoteAgent
/p:DeployIisAppPath="Default Web Site"
/p:MsDeployServiceUrl="http://devserver/msdeployagentservice"
/p:username=DOMAIN\Admin.Username
/p:password=password
/p:IncludeIisSettingsOnPublish=false
When I queue a build, it says it's built fine, but it hasn't published anything to the server. Looking at the build log, I can't see any evidence of it even attempting to do the publish?
Any suggestions appreciated! Documentation for this stuff seems scarce, particularly for deploying to IIS 6..
UPDATE
As comments below suggested it won't work with a web site project, I've now tried it with an MVC 3 app, and it still doesn't seem to even attempt to publish it.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
根据 TFS 2010 构建定义:MSBuild 参数似乎是忽略 我很不情愿地在构建服务器上安装了 VS2010,现在我收到了有意义的错误消息。
确实很烦人的是,您需要这样做才能使其正常工作,更烦人的是,不这样做意味着您甚至不会收到任何类型的错误,而且表现得好像一切都正常!
As per TFS 2010 Build Definition: MSBuild Arguments seems to be ignored I've reluctantly installed VS2010 on the build server and now I'm getting meaningful error messages.
It really is annoying that you need to do this to get it to work, and even more annoying that without doing so means you don't even get any sort of error and it behaves like everything has worked!