如何从服务器IIS访问本地角度项目的服务 [英] How to access services from server IIS to local angular project
本文介绍了如何从服务器IIS访问本地角度项目的服务的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
朋友们,
我在IIS(Windows服务器)中部署了我的mvc项目。
我在本地IIS服务器上部署了我的角度项目。
如何访问服务器服务到本地运行角度项目。
怎么做?
我尝试过:
使用ng build命令发布角度项目。
在角项目中创建一个dist文件夹。我将这个dist路径分配给在IIS中创建的网站。
hi friends,
I deployed my mvc project in IIS(windows server).
I deployed my angular project in local IIS server.
how to access server services to local to run angular project.
how to do this?
What I have tried:
By using ng build command to publish angular project.
A dist folder is created in the angular project.I assigned this dist path to website created in IIS.
推荐答案
您的问题可以提供多种解决方案。在询问这些类型的问题之前,请先进行谷歌搜索。如果您有任何问题,请发布以下问题在你的问题中改进解决方案链接。但是我发布了一个你可以通过的例子来了解实现。
在IIS中运行Angular应用程序的提示 - Premier Developer [ ^ ]
There are n number of solutions available from your problem.Please do a google search before asking these type of questions.If you have any issues please post those issues by improve solution link in your question.However i am posting one example which you can go through and take an idea of implementation.
Tips for Running an Angular app in IIS – Premier Developer[^]
这篇关于如何从服务器IIS访问本地角度项目的服务的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文