How can I deploy direct from Google Cloud Source Repository to Google App Engine?

前提是你 提交于 2020-01-10 05:38:45

问题


Google offers git -> App Engine and git <-> Source Repository, so presumably somewhere it offers Source Repository -> App Engine.

But I can't find where... even after twice reading all the Source Repository and App Engine docs I can find, inc. https://cloud.google.com/source-repositories/docs/ .

I'd guess the procedure could be How to manually deploy direct from Bitbucket to Google App Engine? modified to access the SR files. But I can find the SR files in the GCS VM.

Deleting all the $HOME folders I do find

... have no effect on the files shown at Source:

Baffled.


回答1:


The best way to do this would be to clone the repository to your machine (or Cloud Shell), then use the App Engine deploy tool (https://cloud.google.com/appengine/docs/php/getting-started/deploying-to-app-engine) to deploy your app.

e.g.

gcloud source repos clone $REPO
cd $REPO
gcloud app deploy app.yaml



回答2:


Ostensible solution (untested by me) here: https://web.archive.org/web/20161119132814/https://cloudplatform.googleblog.com/2016/10/introducing-Google-Cloud-Shels-new-code-editor.html



来源:https://stackoverflow.com/questions/40490073/how-can-i-deploy-direct-from-google-cloud-source-repository-to-google-app-engine

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!