在Azure上部署Django(Windows OS)

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

我尝试部署django Web应用程序大约1个月,但无法正常工作。

我可以在Linux上部署它,但是Linux没有“ MySQL in app”。所以我使用Windows。但是,我无法在Windows中找到“启动命令”。而且,我没有安装软件包的权限(我通过kudu使用cmd =>我使用python -m pip install -U --user -r要求),所以我不能运行“ gunircorn ...”,我可以使用pip install,....

有人帮我在Windows Web应用程序上部署Django吗?我极累了~~很难部署~~

我已在Linux(Azure webapp)上成功部署

django azure web-deployment azure-web-app-service webdeploy
1个回答
0
投票

我认为通过Linux上的Git将纯净的Web应用程序部署到Azure上的App Service是最简单的方法。您可以参考下面的官方文档以了解如何通过Azure CLI或仅通过Git进行操作。

Deploy your first Python web app to Azure in five minutesLocal Git Deployment to Azure App Service

并且在App Service上有Django的代码sample作为参考,您可以知道如何配置它以在Azure上运行。

More information on this SO thread.

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