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. 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? additions info my project write in java8 my project write in 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/.
I verified the gcloud app deploy command documentation and it seems that for Java 8 you need to run :
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