【问题标题】:Deploy Django on Azure (Windows OS)在 Azure 上部署 Django(Windows 操作系统)
【发布时间】:2019-09-11 14:11:48
【问题描述】:

我尝试部署 django web 应用程序大约 1 个月,但它没有工作。

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

有没有人帮我在 windows web 应用程序上部署 Django。累死了~~很难部署~~

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

【问题讨论】:

    标签: django azure web-deployment azure-web-app-service webdeploy


    【解决方案1】:

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

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

    还有一个代码sample Django on App Service 作为参考,你可以知道如何配置它以在Azure上运行。

    More information on this SO thread.

    【讨论】:

    • 谢谢。我需要使用代码来激活环境python,很难在Windows(Azure)上部署
    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 2020-06-24
    • 2017-10-10
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2015-09-10
    • 1970-01-01
    相关资源
    最近更新 更多