简体   繁体   English

单个Web应用程序指向IIS上的多个localhost

[英]Single Web Application pointing to multiple localhost on IIS

I am working on a web application which has 2 types of users: provider and consumer. 我正在使用具有两种用户类型的Web应用程序:提供者和使用者。 Almost everything is same on both except a few rules. 除了一些规则外,两者几乎都相同。 I have hosted the same application to 2 different addresses like http://localhost/consumer and http://localhost/provider (working well till now). 我已经将相同的应用程序托管到2个不同的地址,例如http://localhost/consumerhttp://localhost/provider (到目前为止运行良好)。 Now I have a situation. 现在我有一个情况。 If I make any changes to the rules of provider, I want only http://localhost/provider to reflect that and not the consumer. 如果我对提供者的规则进行了任何更改,我只希望http://localhost/provider反映这一点,而不希望使用者使用。 Same for the consumer. 消费者也一样。 Is it possible from visual studio? 从Visual Studio可以吗? Please suggest. 请提出建议。

you can use source control systems like visual studio team foundation server for it and make separate branch for consumer and provider. 您可以使用像Visual Studio Team Foundation Server这样的源代码控制系统,并为消费者和提供者创建单独的分支。 for more details about Team foundation server and branching you can refer following links 有关Team Foundation服务器和分支的更多详细信息,可以参考以下链接

Team Foundation Server Fundamentals Team Foundation Server基础知识

Branching and Merging Guidance for Team Foundation Server Team Foundation Server的分支和合并指导

You can find a fairly comprehensive list of other alternative for source control at this thread 您可以在此线程中找到相当全面的其他源代码控制列表

List of Source Control Systems with Visual Studio Plugins 带有Visual Studio插件的源代码控制系统列表

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM