虽然将WAR文件部署到Azure Web Service中,但未在服务器URL中显示,但是管道已成功运行

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

我正在将WAR文件部署到Azure的应用服务器中,我的管道构建成功,但是我的Web应用未显示在服务器URL中,有人可以告诉我我错过了什么地方吗?

2020-04-20T14:01:09.3660179Z ##[section]Starting: Deploy War to Azure App Service
2020-04-20T14:01:09.3766431Z 
==============================================================================
2020-04-20T14:01:09.3766892Z Task         : Azure App Service deploy
2020-04-20T14:01:09.3767548Z Description  : Deploy to Azure App Service a web, mobile, or API app 
using Docker, Java, .NET, .NET Core, Node.js, PHP, Python, or Ruby
2020-04-20T14:01:09.3767944Z Version      : 4.163.5
2020-04-20T14:01:09.3768213Z Author       : Microsoft Corporation
2020-04-20T14:01:09.3768522Z Help         : https://aka.ms/azureappservicetroubleshooting
2020-04-20T14:01:09.3768901Z 
==============================================================================
2020-04-20T14:01:10.5416719Z Got service connection details for Azure App Service:'jpetstore01'
2020-04-20T14:01:13.1232245Z Package deployment using WAR Deploy initiated.
2020-04-20T14:01:28.4292592Z Deploy logs can be viewed at 
https://jpetstore01.scm.azurewebsites.net/api/deployments/9d03f1b9973b489e898d2aedfd5f7129/log
2020-04-20T14:01:28.4294018Z Successfully deployed web package to App Service.
2020-04-20T14:01:34.2874810Z Successfully updated App Service configuration details
2020-04-20T14:01:36.5781456Z Successfully updated deployment History at 
https://jpetstore01.scm.azurewebsites.net/api/deployments/41587391294722
2020-04-20T14:01:38.3127393Z App Service Application URL: http://jpetstore01.azurewebsites.net
2020-04-20T14:01:41.0462523Z ##[section]Finishing: Deploy War to Azure App Service

这是我的管道日志,说部署成功,但是我无法在http://jpetstore01.azurewebsites.net中获得Web应用程序。有人可以帮我吗?

azure deployment azure-devops azure-web-sites web-deployment
2个回答
0
投票

我估计战争档案可能存在问题,解压缩后应该是错误的路径。建议操作如下图。并重命名新的zip / war文件。

enter image description here

然后您可以根据documentation操作。建议登录URL https://<app_name>.scm.azurewebsites.net/ZipDeployUI,然后删除zip / war文件进行更新。


0
投票

从@LoGan共享的日志来看,war文件似乎已由Azure DevOps任务成功部署,但是应用程序在启动过程中遇到一些错误。

请导航至https://<sitename>.scm.azurewebsites.net/DebugConsole,然后浏览至D:\home\LogFiles\Application目录。您应该看到一个或多个名为catalina.*.log的文件。这些是Tomcat生成的日志文件,应该为您提供一些有关启动过程中应用程序出了什么问题的提示。

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