本文介绍了如何判断Google App Engine文档页面是否适用于第一代/第二代标准或灵活的环境的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我看到很多引擎问题与灵活的环境,尤其是在文档方面,经常会尝试遵循错误的指示,这显然是不希望的结果.

I see a lot of questions from users mixing up the standard environment with the flexible environment, especially when it comes to documentation, often attempting to follow the wrong instructions, obviously with undesired results.

如何轻松判断某个页面适用于哪种GAE环境?

How can one easily tell which GAE environment a certain page is applicable to?

推荐答案

大多数(如果不是全部)GAE文档是由环境构成的.当查看某个文档页面时,在多个位置清楚地指示了环境:

Most (if not all) of the GAE documentation is structured by the environment. When looking at a certain documentation page the environment is clearly indicated in several places:

  • 左侧文档导航栏顶部的第二部分
  • 实际文档页面顶部的导航路径(可能会有所不同,具体取决于编程语言)
  • 文档页面网址中的
  • docs/flexibledocs/standard字符串
  • 一些页面适用于多种编程语言和/或环境(可能有很小的差异),其中的标签指示:
    • 当前选择的语言和环境
    • 页面适用的其他语言和环境(可选)
    • 该页面不适用于的语言和环境(显示为灰色)
    • the second section at the top of the left-side documentation navigation bar
    • the navigation trail at the top of the actual documentation page (which may vary slightly depending on the programming language)
    • the docs/flexible vs docs/standard strings in the doc page URLs
    • some pages applicable to multiple programming languages and/or environments (maybe with small differences) have tabs indicating:
      • the currently selected language and environment
      • the other languages and environments the page applies to (selectable)
      • the languages and environments the page doesn't apply to (grayed out)

      示例:

      如果文档页面未显示上述模式(例如,如果该页面是有关与App Engine相关的其他Google Cloud产品的页面),请检查所讨论的App Engine功能并尝试找到各自的GAE文档.

      If the documentation page doesn't show the above mentioned patterns (for example if it's a page about some other Google Cloud product somehow related to the App Engine), then check about the App Engine feature being discussed and try to locate the respective GAE documentation.

      区别可能还有助于检查这些指南,将两个环境和/或其功能并排放置:

      What may also help with the distinction would be to check these guides putting the 2 environments and/or their features side by side:

      • Choosing an App Engine Environment
      • App Engine Flexible Environment for Users of App Engine Standard Environment
      • Migrating Services from the Standard Environment to the Flexible Environment

      注意:在标准环境下(Node.js除外)列出/提及了多种语言版本时,它们指的是第一代和第二代标准环境,彼此之间存在显着差异.对于这些情况,您还应该查看比较和/或迁移指南:

      Note: when multiple language versions are listed/mentioned under the standard environment (excepting Node.js) they refer to the 1st and 2nd generation standard environment, significantly different from each-other. You should also check the comparison and/or migration guides for these cases:

      • Understanding differences between Python 2 and Python 3 on the App Engine standard environment
      • Migrating from Java 7 to Java 8 Runtime
      • Migrating Your App from PHP 5.5 to PHP 7.2
      • Migrating your App Engine app from Go 1.9 to Go 1.11

      这篇关于如何判断Google App Engine文档页面是否适用于第一代/第二代标准或灵活的环境的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

09-22 15:11