如何直接从 Google Cloud Source Repository 部署到 Google App Engine?

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

Google 提供 git -> App Enginegit <-> 源存储库,所以大概在某个地方它提供了 Source Repository -> App Engine.

但我找不到哪里...即使在阅读了我能找到的所有源存储库和 App Engine 文档两次之后,inc。 https://cloud.google.com/source-repositories/docs/ .

我想可以 How to manually deploy direct from Bitbucket to Google App Engine? 修改程序以访问 SR 文件。但是我可以在 GCS VM 中找到 SR 文件。

正在删除我找到的所有 $HOME 文件夹

...对来源处显示的文件没有影响:

一头雾水

执行此操作的最佳方法是将存储库克隆到您的计算机(或云 Shell),然后使用 App Engine 部署工具 (https://cloud.google.com/appengine/docs/php/getting-started/deploying-to-app-engine) 部署您的应用程序。

例如

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

表面上的解决方案(未经我测试)在这里:https://web.archive.org/web/20161119132814/https://cloudplatform.googleblog.com/2016/10/introducing-Google-Cloud-Shels-new-code-editor.html