首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >Django应用程序已成功部署到Azure,但URL仅显示默认页面,而不是我代码的应用程序

Django应用程序已成功部署到Azure,但URL仅显示默认页面,而不是我代码的应用程序
EN

Stack Overflow用户
提问于 2021-09-13 02:51:31
回答 1查看 253关注 0票数 0

我正在尝试通过VScode将我的应用程序部署到Azure应用程序服务,我遵循了教程步骤,可以在Azure应用程序服务输出终端的输出中看到这一点:

代码语言:javascript
复制
11:24:00 PM trendallarchive: Activating virtual environment...
11:24:00 PM trendallarchive: Could not find setup.py or requirements.txt; Not running pip install

我可以看到我的requirements.txt文件有一个问题,但我不确定为什么它找不到它。这会是我的代码不能部署的原因吗?即使它说部署成功了?如果requirements.txt文件存在,为什么我会收到这个输出?

提前感谢

EN

回答 1

Stack Overflow用户

发布于 2021-09-13 05:26:40

您可以尝试以下方法对进行故障排除

代码语言:javascript
复制
- Connect to the web app's container via [**SSH**](https://docs.microsoft.com/en-sg/azure/app-service/configure-language-python#open-ssh-session-in-browser) and verify that requirements.txt is named correctly and exists directly under `site/wwwroot`. If it doesn't exist, make site the file exists in your repository and is included in your deployment. If it exists in a separate folder, move it to the root.

您可以参考Azure App Service is Up and Running but it shows default microsoft pageDjango Web app is successfully deployed on Azure App Service Linux but can only see Azure Default Page

票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/69156753

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档