![](/img/trans.png)
[英]not able to deploy nodejs with angular app into azure web app using azure devops
[英]Deploying Angular app to NodeJS using Azure Devops
有没有办法使用 Azure Devops PipeLines 将 Angular 应用程序自动部署到 NodeJS 或 onPrem WebServer。
对于 Angular 应用程序,您可以包含特定于 Angular 的命令,例如ng test 、 ng build和ng e2e 。 要在管道中使用 Angular CLI 命令,您需要在构建代理上安装angular/cli npm package 。
- script: |
npm install -g @angular/cli
npm install
ng build --prod
笔记:
在 Microsoft 托管的 Linux 代理上,在命令前加上
sudo
,例如sudo npm install -g
。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.