简体   繁体   English

使用 Azure Devops 将 Angular 应用程序部署到 NodeJS

[英]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 testng buildng 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 , like sudo 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.

相关问题 无法使用 azure devops 将带有 angular 应用程序的 nodejs 部署到 azure web 应用程序中 - not able to deploy nodejs with angular app into azure web app using azure devops 在基于 Windows 的 Azure 应用服务上部署服务器端 NodeJS 应用(CI/CD 使用 Azure DevOps) - Deploying server-side NodeJS app on Windows-based Azure App Service (CI/CD Using Azure DevOps) Azure DevOps CI/CD - Angular 项目 - nodeJS - Azure DevOps CI/CD - Angular Project - nodeJS 将Node.js应用程序部署到Microsoft Azure时出错 - Error deploying nodejs app to Microsoft Azure 使用NodeJ后端部署Angular2应用 - Deploying Angular2 app with NodeJs backend 通过FTP将Node.js应用程序部署到Azure不起作用 - deploying nodejs app to Azure via FTP does not work 在Web API应用Azure中部署Node.js服务器时出错 - Error when deploying nodejs server in web api app Azure 在 Azure 上部署带有 NodeJs 后端的 create-react-app - Deploying create-react-app with NodeJs Backend on Azure 在 Google Cloud Build 上部署 Angular NodeJs 应用程序的问题 - Issue in deploying Angular NodeJs app on Google Cloud Build 使用ExpressJS部署Node.js应用 - Deploying a nodejs app with ExpressJS
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM