Dus*_*tin 4 linux azure azure-web-app-service azure-devops angular-cli
我正在尝试使用 Azure Dev Ops 将 Angular CLI 应用程序部署到 Linux 操作系统上的 Azure 应用服务 - 但没有成功。我得到图像 1。服务器或应用程序日志中没有错误。
这是我到目前为止所做的:
我怀疑我需要在进行部署时输入一些命令时间来启动 angular。我试过运行“ng serve --host 0.0.0.0”,但这没有用。
检查此页面上的 Azure 应用服务 > Linux 部分。本质上,您必须为应用程序提供服务。您可以使用ecoysystem.config.js根目录中的PM2 文件进行配置,并将其放在里面。
module.exports = {
apps: [
{
script: "npx serve -s"
}
]
};
Run Code Online (Sandbox Code Playgroud)
我还在npx serve -s应用服务配置>常规设置>启动命令中添加
另见:https : //burkeholland.github.io/posts/static-site-azure
| 归档时间: |
|
| 查看次数: |
2746 次 |
| 最近记录: |