应用在Azure中不可见。

huangapple go评论67阅读模式
英文:

Application is not visible in Azure

问题

I built a webpage from Flask for learning purpose using github. It was deployed without any issue. But when ever I opens up the page, following page gets opened.

以下是代码中的图片链接,暂不提供翻译。

Following is the log summary.

以下是日志摘要:

3:11:35 PM
Updating submodules.
更新子模块。

3:11:36 PM
Preparing deployment for commit id 'd5d6a931-d'.
准备将提交ID 'd5d6a931-d' 部署。

3:11:36 PM
PreDeployment: context.CleanOutputPath False
PreDeployment: context.CleanOutputPath False

3:11:36 PM
PreDeployment: context.OutputPath /home/site/wwwroot
PreDeployment: context.OutputPath /home/site/wwwroot

3:11:36 PM
Repository path is /tmp/zipdeploy/extracted
仓库路径为 /tmp/zipdeploy/extracted

3:11:36 PM
Running oryx build...
运行 oryx 构建...

3:13:44 PM
Running post deployment command(s)...
运行后部署命令...

3:13:44 PM
Generating summary of Oryx build
生成 Oryx 构建摘要

3:13:44 PM
Parsing the build logs
解析构建日志

3:13:44 PM
Found 0 issue(s)
发现0个问题

3:13:45 PM
Build Summary :
构建摘要:

3:13:45 PM

===============
Errors (0)
错误(0)

3:13:45 PM
Warnings (0)
警告(0)

3:13:45 PM
Triggering recycle (preview mode disabled).
触发回收(预览模式已禁用)。

3:13:46 PM
Deployment successful. deployer = GITHUB_ZIP_DEPLOY deploymentPath = ZipDeploy. Extract zip. Remote build.
部署成功。部署器 = GITHUB_ZIP_DEPLOY,部署路径 = ZipDeploy。提取压缩文件。远程构建。

This is the first time I'm using this. Can you give me a hint why this is happening?
这是我第一次使用这个。您能给我一些提示,为什么会发生这种情况?

英文:

I built a webpage from Flask for learning purpose using github. It was deployed without any issue. But when ever I opens up the page, following page gets opened.

应用在Azure中不可见。

Following is the log summary.

3:11:35 PM
Updating submodules.
3:11:36 PM
Preparing deployment for commit id 'd5d6a931-d'.
3:11:36 PM
PreDeployment: context.CleanOutputPath False
3:11:36 PM
PreDeployment: context.OutputPath /home/site/wwwroot
3:11:36 PM
Repository path is /tmp/zipdeploy/extracted
3:11:36 PM
Running oryx build...
Show Logs...
3:13:44 PM
Running post deployment command(s)...
3:13:44 PM
3:13:44 PM
Generating summary of Oryx build
3:13:44 PM
Parsing the build logs
3:13:44 PM
Found 0 issue(s)
3:13:45 PM
3:13:45 PM
Build Summary :
3:13:45 PM
===============
3:13:45 PM
Errors (0)
3:13:45 PM
Warnings (0)
3:13:45 PM
3:13:45 PM
Triggering recycle (preview mode disabled).
3:13:46 PM
Deployment successful. deployer = GITHUB_ZIP_DEPLOY deploymentPath = ZipDeploy. Extract zip. Remote build.

This is the first time I'm using this. Can you give me a hint why this is happening?

答案1

得分: 1

这是应用程序没有正确部署时发生的情况。

  • 如果应用程序已部署到Azure,请检查日志。

我从github存储库中获取了Flask Web应用程序代码,由vmagelo提供,并通过Github Actions部署到Azure应用服务。

本地输出:

应用在Azure中不可见。

应用在Azure中不可见。

Github:
应用在Azure中不可见。

门户:

应用在Azure中不可见。

将应用程序部署到Azure后,我遇到了与您提到的无法触发应用程序的相同问题。

应用在Azure中不可见。

配置:

应用在Azure中不可见。

修复:

我在应用服务->设置->配置中添加了以下配置,并重新启动了应用服务,它可以正常工作。
WEBSITES_PORT: <您的应用程序正在监听的端口号>

应用在Azure中不可见。

门户输出:
应用在Azure中不可见。

英文:

This happens when the application is not deployed properly.

  • Check the logs if the app is deployed to Azure.

应用在Azure中不可见。


I have taken flask web app code from github repo given by vmagelo and deployed to Azure App Service through Github Actions.

Local Output:

应用在Azure中不可见。

应用在Azure中不可见。

Github:
应用在Azure中不可见。

Portal:

应用在Azure中不可见。

After deploying to Azure, I was facing the same issue as you mentioned that unable to trigger the application.

应用在Azure中不可见。

Configuration:

应用在Azure中不可见。

FIX:

I have added the below configurations in App Service-> Settings->Configuration and restarted the App Service, it worked without any issues.
WEBSITES_PORT:&lt;port_number_which_your application_listening_to&gt;

应用在Azure中不可见。

Portal Output:
应用在Azure中不可见。

huangapple
  • 本文由 发表于 2023年5月15日 08:43:21
  • 转载请务必保留本文链接:https://go.coder-hub.com/76250255.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定