Google App Engine SDK 弃用影响我的框架应用程序
Google App Engine SDK deprecation effecting my Framework application
我的应用程序是在 Google 应用引擎标准环境中的 Play 框架 1.x 和 运行 中开发的。
下面是我部署应用程序 GAE 的方式。
命令播放 gae:deploy
但是这个命令从 GAE Cloud SDK 内部调用 "appcfg"。
所以现在我必须更改我的部署 procedure.I 已尝试按照 Google Document.The 基本命令的建议使用 Cloud SDK 进行部署,其中 - "gcloud app deploy".
我查看了 Google 云文档,发现他们建议使用 Java11 用于带有 app.yaml 文件的 GAE 标准环境。
但我现在只想对 GAE 标准环境使用 Java8。
但是在部署时发出如下警告-
WARNING: Automatic app detection is deprecated and will soon be removed. As an a
lternative, create an app.yaml file yourself using the directions at https://clo
ud.google.com/appengine/docs/flexible/python/configuring-your-app-with-app-yaml
(App Engine Flexible Environment) or https://cloud.google.com/appengine/docs/sta
ndard/python/config/appref (App Engine Standard Environment) under the tab for y
our language.
Deployment to Google App Engine requires an app.yaml file. This
command will run gcloud beta app gen-config
to generate an app.yaml
file for you in the current directory (if the current directory does
not contain an App Engine service, please answer "no").
如果我必须为基于 java 的 GAE 标准应用程序构建 app.yaml 文件,那么该文件的结构是什么?
如果 app.yaml 文件对于 java8 GAE 应用程序是不可能的,appengine-web.xml 的结构将是什么,以便使用命令
"gcloud app deploy"
还有一种选择是,我应该迁移基于 maven 的应用程序。但是现在我不想迁移到 maven 工具。
他们解释了如何迁移 here, basically get the Cloud SDK and instead of appcfg command, you’ll have to be using gcloud 命令。
针对您的问题:
1 - Java8 标准环境不需要 app.yaml
2 - 要使用 Maven 将 Java8 应用程序部署到 GAE 标准,您将使用 command mvn appengine:deploy
3 - 此 documentation explains how the migration to CloudSDK based Maven plugin. And this one 解释了迁移到基于 Gradle 插件的 Cloud SDK
我的应用程序是在 Google 应用引擎标准环境中的 Play 框架 1.x 和 运行 中开发的。 下面是我部署应用程序 GAE 的方式。 命令播放 gae:deploy 但是这个命令从 GAE Cloud SDK 内部调用 "appcfg"。
所以现在我必须更改我的部署 procedure.I 已尝试按照 Google Document.The 基本命令的建议使用 Cloud SDK 进行部署,其中 - "gcloud app deploy".
我查看了 Google 云文档,发现他们建议使用 Java11 用于带有 app.yaml 文件的 GAE 标准环境。
但我现在只想对 GAE 标准环境使用 Java8。
但是在部署时发出如下警告-
WARNING: Automatic app detection is deprecated and will soon be removed. As an a lternative, create an app.yaml file yourself using the directions at https://clo ud.google.com/appengine/docs/flexible/python/configuring-your-app-with-app-yaml (App Engine Flexible Environment) or https://cloud.google.com/appengine/docs/sta ndard/python/config/appref (App Engine Standard Environment) under the tab for y our language. Deployment to Google App Engine requires an app.yaml file. This command will run
gcloud beta app gen-config
to generate an app.yaml file for you in the current directory (if the current directory does not contain an App Engine service, please answer "no").
如果我必须为基于 java 的 GAE 标准应用程序构建 app.yaml 文件,那么该文件的结构是什么?
如果 app.yaml 文件对于 java8 GAE 应用程序是不可能的,appengine-web.xml 的结构将是什么,以便使用命令
"gcloud app deploy"
还有一种选择是,我应该迁移基于 maven 的应用程序。但是现在我不想迁移到 maven 工具。
他们解释了如何迁移 here, basically get the Cloud SDK and instead of appcfg command, you’ll have to be using gcloud 命令。
针对您的问题:
1 - Java8 标准环境不需要 app.yaml
2 - 要使用 Maven 将 Java8 应用程序部署到 GAE 标准,您将使用 command mvn appengine:deploy
3 - 此 documentation explains how the migration to CloudSDK based Maven plugin. And this one 解释了迁移到基于 Gradle 插件的 Cloud SDK