TFS:分支。如何将分支映射到IIS进行本地测试
我认为我对分支有些不明白
如何从本地主机运行我的网站来测试我在分支上所做的更改
假设我的分支结构是
-Dev
-UI
-App
Main
-UI
-App
主项目的 UI 和应用程序在我的 IIS 中映射,一切正常 谢谢
现在我想在 Dev 分支的 UI 项目中进行一些更改,并且我想在将它们合并到 Main 之前测试这些更改
,
I think there's something I don't understand about Branching
How can I run my website from localhost to test my changes made on a Branch
Let's say my branch structure is
-Dev
-UI
-App
Main
-UI
-App
The project UI and App from the main are map in my IIS, it's all working well
Now I want to make some changes in the UI project from Dev branch, and I want to test these changes before I merge them to Main
Thanks
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
实际上,我会进行一些更改,以便您的 IIS 虚拟目录与源代码位于不同的位置。当您想要在 IIS 中测试内容时,请构建/部署 Main 或 Dev 分支,以将应用程序部署到新的 IIS 位置。
这有助于确保您的部署正确并且没有遗漏任何内容 - 它将有助于防止“在我的机器上运行”错误。
作为替代方案,您始终可以切换到使用 VS Web 服务器,而根本不用担心配置 IIS - 但我认为不这样做是有原因的。
I'd actually change things so that your IIS virtual directory is a separate location from your source code. When you want to test things in IIS then do a build/deploy of either your Main or Dev branches to deploy the app to your new IIS location.
This helps ensure that your deployment is correct and that you haven't missed anything - it'll help prevent "works on my machine" errors.
As an alternative you could always switch to using the VS web server and not worry about configuring IIS at all - but I'm assuming there's reasons for not doing that.