【问题标题】:How to manually deploy direct from Bitbucket to Google App Engine?如何手动从 Bitbucket 直接部署到 Google App Engine?
【发布时间】:2016-11-07 03:38:01
【问题描述】:

要从 Bitbucket 存储库(名为 trackfind)上的更改源手动部署到 Google App Engine 应用程序(ID trackfind-1),我这样做:

1 转至https://console.cloud.google.com/home/dashboard?authuser=0&project=trackfind-1

2 点击激活 Google Cloud Shell:

3 输入rm -rf trackfind

4 输入git clone -b master https://chrisjj@bitbucket.org/chrisjj/trackfind.git

5 输入appcfg.py -V 1 -A trackfind-1 update trackfind

6 访问 trackfind-1.appspot.com 并验证更改是否到位。

我确信必须有一种更快、更直接的方式,例如避免每次都克隆存储库。 (我对间接方法不感兴趣,例如使用本地机器或额外的 VM 来运行,例如 Jenkins 等第三方工具。)

那是什么?

注意:我将 3 从 https://bitbucket.org/chrisjj/trackfind 编辑到 https://chrisjj@bitbucket.org/chrisjj/trackfind.git ,这样可以避免提示输入用户名。

【问题讨论】:

    标签: google-app-engine bitbucket google-cloud-platform


    【解决方案1】:

    您可以通过重新使用现有的 trackfind 存储库来加快速度:

    1. 输入cd trackfind

    2. 输入git checkout master; git pull

    这只会拉取自上次部署以来的增量更改,这比从头开始重新拉取整个存储库要快得多,特别是如果它是一个大型存储库和/或它有很长的更改历史。

    【讨论】:

    • 谢谢。这有效 i.imgur.com/QbprXYV.png 。我仍然觉得没有必要通过克隆回购,尤其是。因为提供了一个 Google Cloud Source Repository,我看不到如何部署到应用程序。
    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2015-02-19
    • 1970-01-01
    • 2016-09-20
    • 2014-11-12
    • 2016-12-07
    • 2011-10-21
    相关资源
    最近更新 更多