gcloud app deploy --promote --project test12 app-live.yaml --log-http --verbosity=debug
My app-live.yaml file: https://shrib.com/?v=nc#uUXDedcjuzf-P28OdKJ5
but show this error:
HttpBadRequestError: HttpError accessing https://appengine.googleapis.com/v1/apps/ads-clickgs/services/default/versions?alt=json: response: <{'status': '400', 'content-length': '252', 'x-xss-protection': '1; mode=block', 'x-content-type-options': 'nosniff', 'transfer-encoding': 'chunked', 'vary': 'Origin, X-Origin, Referer', 'server': 'ESF', '-content-encoding': 'gzip', 'cache-control': 'private', 'date': 'Tue, 28 Aug 2018 04:44:34 GMT', 'x-frame-options': 'SAMEORIGIN', 'alt-svc': 'quic=":443"; ma=2592000; v="44,43,39,35"', 'content-type': 'application/json; charset=UTF-8'}>, content <{ "error": { "code": 400, "message": "Please update to the latest version of gcloud. If you are using the API directly, please provide a value for version.entrypoint.shell. This can be an empty value.", "status": "INVALID_ARGUMENT" } }
i searched on google but not found any suggestion. thanks
Looking at your issue and the error message, it seems like your gcloud components are not updated to the latest version. To update all installed components to the latest version please try the following command on your environment:
$gcloud components update
I would recommend going through the following article which provides step-by-step instruction on how to update gcloud components to the latest version or the version that you prefer.
Hello Hoang,
I would suggest deploying the app from the Cloud Shell by going through the following article. This way the deployment will be independent of the local environment. This is the documentation that explains the app.yaml configuration for PHP 7.2 Application. This way you would be able to verify which files or folders were different from the setup that you have created on your Cloud Shell environment and the local environment.