azure dev ops管道中的角度自动部署

问题描述 投票:0回答:1

Azure开发人员中的角度自动部署

当我运行管道时,出现此错误。

FTP Upload: Agent Job
·
2 errors

21s
Error: connect ETIMEDOUT 104.208.237.166:22 (control socket)

Ftp Upload failed.

我们已经成功运行了构建,发行和Web服务,但运行正常,但是我们的站点/ wwwroot为空。因此,请连接FTP连接以将dist代码推送到site / wwwroot。

<< img src =“ https://image.soinside.com/eyJ1cmwiOiAiaHR0cHM6Ly9pLnN0YWNrLmltZ3VyLmNvbS8zVWZHRi5wbmcifQ==” alt =“错误的截图”>

angular azure azure-devops azure-pipelines azure-pipelines-build-task
1个回答
0
投票

Copy Files之后将npm prod任务添加到您的管道中,因此不需要FTP上传,它将把/dist文件夹复制到工件,接下来您将对其进行部署。

因此您的Angular项目管道将包含以下步骤:Pipeline

还请确保在Azure App Service部署:Angular部署任务中选择正确的包或文件夹位置。

© www.soinside.com 2019 - 2024. All rights reserved.