我正在尝试通过VScode将我的应用程序部署到Azure应用程序服务,我遵循了教程步骤,可以在Azure应用程序服务输出终端的输出中看到这一点:
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文件存在,为什么我会收到这个输出?
提前感谢
发布于 2021-09-13 05:26:40
您可以尝试以下方法对进行故障排除
- 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 page和Django Web app is successfully deployed on Azure App Service Linux but can only see Azure Default Page
https://stackoverflow.com/questions/69156753
复制相似问题