angular - 在 azure 上部署 Angular 应用程序
问题描述
我的前端应用程序在 nodejs 和 express 上的角度和后端服务上。我想在 Azure 上部署这些应用程序。我使用 Azure 应用服务来部署后端应用。我想知道我们是否需要在存储帐户中使用静态网站(复制 dist 文件夹内容,由 ng build 生成)部署 Angular 应用程序,或者我们需要网络服务器。这是首选方式?
解决方案
在存储中托管比维护 Web 服务器更简单且成本更低。但由于您将后端应用托管在 Azure 应用服务上,因此您可以使用相同的应用服务计划来降低成本。
参考:
https://docs.microsoft.com/en-us/azure/javascript/tutorial-vscode-static-website-node-01
推荐阅读
- python-asyncio - 我无法在 HTTP2 实现中更新流控制窗口,因此客户端无法发送其余数据
- swift - 如何快速修复导航栏下的视图
- c# - 在事务中使用 C# 在 Azure SQL 中创建服务器登录名和数据库用户
- javascript - 什么是 JS 中的后向支持?如何更换它?
- java - 使用来自 Rest API 的值返回键
- r - 过渡期间的 gganimate 舍入值
- google-app-engine - 用于静态 html 网站的 Google App Engine 的正确 app.yaml 处理程序配置
- java - URL 问题中的弹簧和德语字母
- python - 计算再入院率
- typescript - Typescript 在超级原型上声明一个可选方法