<tfoot id='iwKF6'></tfoot>
    <bdo id='iwKF6'></bdo><ul id='iwKF6'></ul>

    <i id='iwKF6'><tr id='iwKF6'><dt id='iwKF6'><q id='iwKF6'><span id='iwKF6'><b id='iwKF6'><form id='iwKF6'><ins id='iwKF6'></ins><ul id='iwKF6'></ul><sub id='iwKF6'></sub></form><legend id='iwKF6'></legend><bdo id='iwKF6'><pre id='iwKF6'><center id='iwKF6'></center></pre></bdo></b><th id='iwKF6'></th></span></q></dt></tr></i><div id='iwKF6'><tfoot id='iwKF6'></tfoot><dl id='iwKF6'><fieldset id='iwKF6'></fieldset></dl></div>

      <legend id='iwKF6'><style id='iwKF6'><dir id='iwKF6'><q id='iwKF6'></q></dir></style></legend>
    1. <small id='iwKF6'></small><noframes id='iwKF6'>

    2. 如何在 azure 上运行基于 python3.7 的烧瓶 web api

      How to run python3.7 based flask web api on azure(如何在 azure 上运行基于 python3.7 的烧瓶 web api)
      • <small id='rZocw'></small><noframes id='rZocw'>

          <legend id='rZocw'><style id='rZocw'><dir id='rZocw'><q id='rZocw'></q></dir></style></legend>
            <tfoot id='rZocw'></tfoot>
              <bdo id='rZocw'></bdo><ul id='rZocw'></ul>
                <i id='rZocw'><tr id='rZocw'><dt id='rZocw'><q id='rZocw'><span id='rZocw'><b id='rZocw'><form id='rZocw'><ins id='rZocw'></ins><ul id='rZocw'></ul><sub id='rZocw'></sub></form><legend id='rZocw'></legend><bdo id='rZocw'><pre id='rZocw'><center id='rZocw'></center></pre></bdo></b><th id='rZocw'></th></span></q></dt></tr></i><div id='rZocw'><tfoot id='rZocw'></tfoot><dl id='rZocw'><fieldset id='rZocw'></fieldset></dl></div>
                  <tbody id='rZocw'></tbody>

                本文介绍了如何在 azure 上运行基于 python3.7 的烧瓶 web api的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着跟版网的小编来一起学习吧!

                问题描述

                我正在尝试将我的 python api 托管在 azure web 应用程序上.它是一个基于 Flaks 的应用程序,并有一个演示烧瓶代码.我已经创建了资源组并设置了所有内容.但是在访问 url 时会显示

                I am trying to host my python api on azure web app. It is a Flaks based application and having a demo flask code . I have created resource group and setup everything. But when accessing the url it shows

                虽然从部署选项中可以看出,它已经成功部署了我的bitbucket项目.我在应用程序设置中选择了python3.4版本.我尝试添加最新的 python 扩展,但只有 3.6 版本可用.我已经添加了 python3.6 扩展,但它仍然只在应用程序设置中显示 python3.4.

                although I can see from the deployment options, it has successfully deployed my bitbucket project. I have selected python3.4 version in the application settings. I have tried adding the latest python extension but only 3.6version is available. I have added the python3.6 extension but it still only show python3.4 in application settings.

                我不知道如何解决这个问题.请帮忙.谢谢.

                I do not know how can I resolve this issue. Please help. Thanks.

                推荐答案

                S Andrew.

                web.config 文件在部署您的 Web 应用程序时必不可少.您可以在 KUDU url 上创建 web.config 文件.

                web.config file is essential in the deployment of your web App.You could create the web.config file on the KUDU url.

                您可以通过以下两种方式导航到 KUDU:

                You could navigate to KUDU via below two way:

                1.找到门户上的按钮.

                1.Find the button on the portal.

                2.直接访问url:https://.scm.azurewebsites.net/

                2.access url directly: https://.scm.azurewebsites.net/

                在KUDU上,你可以在路径中看到你的应用结构:D:homesitewwwroot,你需要在这里创建web.config文件.

                On the KUDU,you could see your app structure in the path: D:homesitewwwroot,you need to create web.config file here.

                另外,你可以在路径中看到你的python扩展:D:home,如果你想使用扩展环境,你需要在web.config中配置正确的路径.

                Also,you could see your python extension in the path:D:home, if you want to use extension environment, you need to configure the correct path in web.config.

                请看我的示例web.config文件.与web.config相关的,可以参考这个官方文档.

                Please see my sample web.config file.Related to web.config, you could refer to this official doc.

                <configuration>
                  <appSettings>
                    <add key="WSGI_HANDLER" value="<your app name>.app"/>
                    <add key="PYTHONPATH" value="D:homesitewwwroot"/>
                    <add key="WSGI_LOG" value="D:homeLogFileswfastcgi.log"/>
                  </appSettings>
                  <system.webServer>
                    <handlers>
                      <add name="PythonHandler" path="*" verb="*" modules="FastCgiModule" scriptProcessor="D:homePython361x64python.exe|D:homePython361x64wfastcgi.py" resourceType="Unspecified" requireAccess="Script"/>
                    </handlers>
                  </system.webServer>
                </configuration>
                

                更多关于Azure上python应用部署的细节,请看我之前的案例,你会找到答案的.

                More details about python app deployment on the azure,please see my previous cases,you will find the answer.

                1.未能将 Flask 部署到 Azure

                2.部署python烧瓶项目天蓝色使用视觉工作室

                希望对你有帮助.

                这篇关于如何在 azure 上运行基于 python3.7 的烧瓶 web api的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!

                本站部分内容来源互联网,如果有图片或者内容侵犯了您的权益,请联系我们,我们会在确认后第一时间进行删除!

                相关文档推荐

                Running .jl file from R or Python(从 R 或 Python 运行 .jl 文件)
                Running Julia .jl file in python(在 python 中运行 Julia .jl 文件)
                Using PIP in a Azure WebApp(在 Azure WebApp 中使用 PIP)
                Azure Python Web App Internal Server Error(Azure Python Web 应用程序内部服务器错误)
                Run python dlib library on azure app service(在 azure app 服务上运行 python dlib 库)
                Django channels and azure(Django 频道和天蓝色)
                  <bdo id='LvMoE'></bdo><ul id='LvMoE'></ul>

                  <legend id='LvMoE'><style id='LvMoE'><dir id='LvMoE'><q id='LvMoE'></q></dir></style></legend>
                    • <tfoot id='LvMoE'></tfoot>
                        <i id='LvMoE'><tr id='LvMoE'><dt id='LvMoE'><q id='LvMoE'><span id='LvMoE'><b id='LvMoE'><form id='LvMoE'><ins id='LvMoE'></ins><ul id='LvMoE'></ul><sub id='LvMoE'></sub></form><legend id='LvMoE'></legend><bdo id='LvMoE'><pre id='LvMoE'><center id='LvMoE'></center></pre></bdo></b><th id='LvMoE'></th></span></q></dt></tr></i><div id='LvMoE'><tfoot id='LvMoE'></tfoot><dl id='LvMoE'><fieldset id='LvMoE'></fieldset></dl></div>
                      1. <small id='LvMoE'></small><noframes id='LvMoE'>

                          <tbody id='LvMoE'></tbody>