[英]Azure App service and Angular SSR application
I have an angular app with Server side rendering.我有一个带有服务器端渲染的角度应用程序。 And also, this server.ts
has some simple APIs in it.而且,这个server.ts
有一些简单的 API。 I am trying to deploy it in Azure app service(with AD integration) but with no success.我正在尝试将它部署在 Azure 应用服务(使用 AD 集成)中,但没有成功。 What could it be still missing?它还能缺少什么?
package.json包.json
"scripts": {
"ng": "ng",
"start": "node dist/angular-app/server/main.js",
"build": "ng build",
"test": "ng test",
"lint": "ng lint",
"e2e": "ng e2e",
"dev:ssr": "ng run angular-app:serve-ssr",
"serve:ssr": "node dist/angular-app/server/main.js",
"build:ssr": "ng build --prod && ng run angular-app:server:production",
"prerender": "ng run angular-app:prerender"
},
Error message when I access the Azure app service url:访问 Azure 应用服务 URL 时的错误消息:
This problem is generally caused by the lack of web.config
.这个问题一般是缺少web.config
引起的。
For more details, you can check my answers in below posts.有关更多详细信息,您可以在以下帖子中查看我的答案。
1. Azure Web App getting “You do not have permission to view this directory or page.” 1. Azure Web App 提示“您无权查看此目录或页面”。 when launch app 启动应用程序时
2. Node JS Deployment to Azure Web App Service ERROR - “You do not have permission to view this directory or page.” 2. Node JS 部署到 Azure Web 应用服务错误 - “您无权查看此目录或页面。”
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.