The gcloud app deploy command does not work.

I have the google version python engine engine installed and I created a new project in the console. I followed the instruction in my terminal. I am using the command gcloud app deploy

in my working directory, then I got this error:

ERROR: The [application] field is specified in file 
[/Users/fengxinlin/project/app.yaml]. This field is not used by 
gcloud and must be removed. Project name should instead be specified 
either by `gcloud config set project MY_PROJECT` or by setting the `-
-project` flag on individual command executions.
ERROR: (gcloud.app.deploy) Errors occurred while parsing the App 
Engine app configuration.

      

then i tried gcloud config set project [one of my project]

after that i gcloud app deploy

again, i got the same error, is there something wrong with my command?

+3


source to share


2 answers


Now I have solved this problem. The answer is only in the error message: in my app.yaml

file, remove the lines application

and version

from the yaml file. then there will be no such errors.



+8


source


Run below command: gcloud app deloy : to get rid of an internal error that frustrates many users like you and me.



gcloud config set app/use_deprecated_preparation True

      

0


source







All Articles