[英]Deploying Angular app to NodeJS using Azure Devops
Is there a way to automate deployment of Angular application to NodeJS or onPrem WebServer using Azure Devops PipeLines.有没有办法使用 Azure Devops PipeLines 将 Angular 应用程序自动部署到 NodeJS 或 onPrem WebServer。
For Angular apps, you can include Angular-specific commands such as ng test , ng build , and ng e2e .对于 Angular 应用程序,您可以包含特定于 Angular 的命令,例如ng test 、 ng build和ng e2e 。 To use Angular CLI commands in your pipeline, you need to install the angular/cli npm package on the build agent.
要在管道中使用 Angular CLI 命令,您需要在构建代理上安装angular/cli npm package 。
- script: |
npm install -g @angular/cli
npm install
ng build --prod
Note:笔记:
On Microsoft-hosted Linux agents, preface the command with
sudo
, likesudo npm install -g
.在 Microsoft 托管的 Linux 代理上,在命令前加上
sudo
,例如sudo npm install -g
。
https://docs.microsoft.com/en-us/azure/devops/pipelines/ecosystems/javascript?view=azure-devops&tabs=example#angular https://docs.microsoft.com/en-us/azure/devops/pipelines/ecosystems/javascript?view=azure-devops&tabs=example#angular
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.