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

        <legend id='ZvVNh'><style id='ZvVNh'><dir id='ZvVNh'><q id='ZvVNh'></q></dir></style></legend><tfoot id='ZvVNh'></tfoot>

        <small id='ZvVNh'></small><noframes id='ZvVNh'>

      1. 使用Google云功能的Python烧瓶应用程序

        Python flask app using google cloud functions(使用Google云功能的Python烧瓶应用程序)
          <tbody id='5egXR'></tbody>
      2. <tfoot id='5egXR'></tfoot>
        • <i id='5egXR'><tr id='5egXR'><dt id='5egXR'><q id='5egXR'><span id='5egXR'><b id='5egXR'><form id='5egXR'><ins id='5egXR'></ins><ul id='5egXR'></ul><sub id='5egXR'></sub></form><legend id='5egXR'></legend><bdo id='5egXR'><pre id='5egXR'><center id='5egXR'></center></pre></bdo></b><th id='5egXR'></th></span></q></dt></tr></i><div id='5egXR'><tfoot id='5egXR'></tfoot><dl id='5egXR'><fieldset id='5egXR'></fieldset></dl></div>
            1. <small id='5egXR'></small><noframes id='5egXR'>

                  <bdo id='5egXR'></bdo><ul id='5egXR'></ul>
                  <legend id='5egXR'><style id='5egXR'><dir id='5egXR'><q id='5egXR'></q></dir></style></legend>

                • 本文介绍了使用Google云功能的Python烧瓶应用程序的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着跟版网的小编来一起学习吧!

                  问题描述

                  我了解Google Cloud Functions是一种运行函数的无服务器架构,我已经阅读了有关Cloud Functions的文档。我想在云函数上运行整个带有CRUD API的Flask应用程序。我看过几篇关于在云函数上运行Python函数的文章。有人能帮我找到一篇关于如何通过单个云函数运行Flask应用的文章/教程吗?

                  推荐答案

                  如果您有一个烧瓶应用程序,我建议您使用Cloud Run。它与云函数非常相似(实际上是相同的后端),但是您可以运行容器。

                  我在What I use and What I prefer between Cloud Functions and Cloud Run上写了一篇文章。

                  如果您的flask应用程序是标准的,您可以使用standard Dockerfile to build it。更改pip install行(或添加其他行)以导入项目的依赖项

                  如果您的计算机上没有安装Docker,您可以这样使用Cloud Build

                  gcloud builds submit -t gcr.io/<PROJECT_ID>/<CONTAINER_NAME>
                  

                  然后按云运行部署

                  gcloud run deploy --image gcr.io/<PROJECT_ID>/<CONTAINER_NAME> --platform=managed
                  

                  这篇关于使用Google云功能的Python烧瓶应用程序的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!

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

                  相关文档推荐

                  groupby multiple coords along a single dimension in xarray(在xarray中按单个维度的多个坐标分组)
                  Group by and Sum in Pandas without losing columns(Pandas中的GROUP BY AND SUM不丢失列)
                  Group by + New Column + Grab value former row based on conditionals(GROUP BY+新列+基于条件的前一行抓取值)
                  Groupby and interpolate in Pandas(PANDA中的Groupby算法和插值算法)
                  Pandas - Group Rows based on a column and replace NaN with non-null values(PANAS-基于列对行进行分组,并将NaN替换为非空值)
                  Grouping pandas DataFrame by 10 minute intervals(按10分钟间隔对 pandas 数据帧进行分组)
                  <tfoot id='e59kq'></tfoot><legend id='e59kq'><style id='e59kq'><dir id='e59kq'><q id='e59kq'></q></dir></style></legend>

                    <bdo id='e59kq'></bdo><ul id='e59kq'></ul>

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

                            <small id='e59kq'></small><noframes id='e59kq'>