如何直接从Bitbucket直接部署到Google App Engine? [英] How to manually deploy direct from Bitbucket to Google App Engine?

查看:153
本文介绍了如何直接从Bitbucket直接部署到Google App Engine?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

为了从Bitbucket存储库(名为trackfind)的已更改源手动部署到Google App Engine应用程序(ID trackfind-1),请执行以下操作:

< 1>转到



3输入 rm -rf trackfind



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



5输入 appcfg.py -V 1 -A trackfind-1更新trackfind



6转到trackfind-1.appspot.com并验证是否有更改。



我确定那里必须是一个qui cker,直接的方式,例如避免每次都克隆存储库。 (我对间接方法不感兴趣,例如使用本地机器或额外的虚拟机运行,例如Jenkins等第三方工具。)



这是什么方式?



注意:我从 https://编辑了3个请访问https://chrisjj@bitbucket.org chrisjj / trackfind.git ,它避免了提示输入用户名。

解决方案

重新使用现有的 trackfind 存储库:


  1. 输入 cd trackfind


  2. 输入 git checkout master; git pull




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


    To manually deploy from a changed source on a Bitbucket repository (named trackfind) to a Google App Engine app (ID trackfind-1) , I'm doing this:

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

    2 Click Activate Google Cloud Shell:

    3 Enter rm -rf trackfind

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

    5 Enter appcfg.py -V 1 -A trackfind-1 update trackfind

    6 Go to trackfind-1.appspot.com and verify changes are in place.

    I'm sure there must be a quicker, direct way, e.g. avoiding cloning the repository each time. (I'm not interested in indirect methods e.g. using a local machine or an extra VM to run e.g. a third-party tool such as Jenkins.)

    What is that way?

    Note: I edited 3 from https://bitbucket.org/chrisjj/trackfind to https://chrisjj@bitbucket.org/chrisjj/trackfind.git , which avoids a prompt for the username.

    解决方案

    You could speedup things a bit by re-using the existing trackfind repository:

    1. Enter cd trackfind

    2. Enter git checkout master; git pull

    This will only pull the delta changes since the last deployment, which can be significantly faster than re-pulling the entire repository from scratch, especially if it's a large repository and/or it has a long change history.

    这篇关于如何直接从Bitbucket直接部署到Google App Engine?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆