[英]gcloud app deploy command error INVALID_ARGUMENT: WEB-INF/appengine-web.xml is required for this runtime
I try to convert work from appengine-web.xml file to work with app.yaml file in google app engine project, so I created app.yaml file and put it in main folder of project.我尝试将 appengine-web.xml 文件中的工作转换为使用 google app engine 项目中的 app.yaml 文件,所以我创建了 app.yaml 文件并将其放在项目的主文件夹中。 when I try to deploy my project with "gcloud app deploy" command I get error INVALID_ARGUMENT: WEB-INF/appengine-web.xml is required for this runtime if I run "gcloud app deploy path/appengine-web.xml" command the deploy is work fine what i need to to convert to work with app.yaml file?
当我尝试使用“gcloud app deploy”命令部署我的项目时,我收到错误 INVALID_ARGUMENT: WEB-INF/appengine-web.xml is required for this runtime if I run “gcloud app deploy path/appengine-web.xml” command the部署工作正常,我需要转换为使用 app.yaml 文件吗? additions info my project write in java8 my project write in eclipse
附加信息 我的项目用 java8 编写 我的项目用 Eclipse 编写
thank you谢谢你
One Java Application that will be deployed in App Engine must have a file named appengine-web.xml in its WAR, in the directory WEB-INF/.将在 App Engine 中部署的一个Java 应用程序必须在其 WAR 目录 WEB-INF/ 中有一个名为appengine-web.xml的文件。
I verified the gcloud app deploy command documentation and it seems that for Java 8 you need to run :我验证了gcloud app deploy命令文档,对于 Java 8,您似乎需要运行:
gcloud app deploy ~/my_app/WEB-INF/appengine-web.xml
That is the one that you are running.那就是你正在运行的那个。
On the other hand, I found this documentation ( for Flexible ) that mentions how to organize your files in case that you want to use the app.yaml for java 8另一方面,我发现这个文档(对于 Flexible )提到了如何组织文件,以防您想使用 java 8 的 app.yaml
As the documetnatyion indicated that, for Java8 Standard apps, you must add the path to the appengine-web.xml file inside the WEB-INF directory.正如文档所指出的,对于 Java8 Standard 应用程序,您必须将路径添加到 WEB-INF 目录中的 appengine-web.xml 文件中。 gcloud app deploy skips files specified in the .gcloudignore file see gcloud topic gcloudignore for more information .
gcloud app deploy 会跳过 .gcloudignore 文件中指定的文件。有关详细信息,请参阅 gcloud 主题 gcloudignore 。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.