【问题标题】:How can I deploy direct from Google Cloud Source Repository to Google App Engine?如何从 Google Cloud Source Repository 直接部署到 Google App Engine?
【发布时间】:2016-11-08 14:57:23
【问题描述】:

Google 提供 git -> App Enginegit Source Repository,所以大概它提供了 Source Repository -> App Engine .

但我找不到...即使在阅读了我能找到的所有 Source Repository 和 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 文件夹

...对Source中显示的文件没有影响:

困惑。

【问题讨论】:

    标签: git google-app-engine google-cloud-platform google-cloud-source-repos


    【解决方案1】:

    执行此操作的最佳方法是将存储库克隆到您的机器(或 Cloud 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
    

    【讨论】:

    • 问题要求直接 :-) 无论如何感谢间接选项。
    • 在我做出调整之前,这不起作用。这些以及更多的答案在这里*.com/questions/37171916/…
    【解决方案2】: