With Google App Engine, why do I now get “command

2019-02-25 23:42发布

This started after I ran the latest gcloud update:

gcloud components update

I used to be able to deploy my app something like this:

appcfg.py update app.yaml

Now I get:

appcfg.py: command not found

Is there a new gcloud command for deploying App Engine apps?

4条回答
看我几分像从前
2楼-- · 2019-02-26 00:16

in my case, i needed to run the following:

sudo ln -sv /usr/local/google-cloud-sdk/platform/google_appengine/appcfg.py /usr/local/google-cloud-sdk/bin/ 
查看更多
别忘想泡老子
3楼-- · 2019-02-26 00:18

using gcloud app deploy --project project-appengine-id You'll need to have a billing account

查看更多
做自己的国王
4楼-- · 2019-02-26 00:25

gcloud app deploy is the preferred way when using gcloud. If you download the stand alone Google App Engine SDK, then you will have appcfg.py available.

https://cloud.google.com/sdk/gcloud/reference/app/deploy

查看更多
Juvenile、少年°
5楼-- · 2019-02-26 00:37

It appears the most recent version of gcloud dropped appcfg.py from the bin directory.

$ ls ~/google-cloud-sdk/bin/
bootstrapping  bq  dev_appserver.py  gcloud  git-credential-gcloud.sh  gsutil

I found the appcfg.py script under the platform directory:

$ ls ~/google-cloud-sdk/platform/google_appengine
api_server.py           dev_appserver.py      LICENSE               RELEASE_NOTES
appcfg.py ...

By linking it back to the bin directory, I was able to restore the command.

ln -sv ~/google-cloud-sdk/platform/google_appengine/appcfg.py ~/google-cloud-sdk/bin/

Credit to this post for helping me to figure this out.

查看更多
登录 后发表回答