英文:
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.
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应用服务。
本地输出:
Github:
门户:
将应用程序部署到Azure后,我遇到了与您提到的无法触发应用程序的相同问题。
配置:
修复:
我在应用服务->设置->配置中添加了以下配置,并重新启动了应用服务,它可以正常工作。
WEBSITES_PORT: <您的应用程序正在监听的端口号>
门户输出:
英文:
This happens when the application is not deployed properly.
- Check the logs if the app is deployed to 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:
Github:
Portal:
After deploying to Azure, I was facing the same issue as you mentioned that unable to trigger the application.
Configuration:
FIX:
I have added the below configurations in App Service-> Settings->Configuration and restarted the App Service, it worked without any issues.
WEBSITES_PORT:<port_number_which_your application_listening_to>
Portal Output:
通过集体智慧和协作来改善编程学习和解决问题的方式。致力于成为全球开发者共同参与的知识库,让每个人都能够通过互相帮助和分享经验来进步。
评论