本文介绍了如何直接从Bitbucket直接部署到Google App Engine?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述 29岁程序员,3月因学历无情被辞! 为了从Bitbucket存储库(名为trackfind)的已更改源手动部署到Google App Engine应用程序(ID trackfind-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 存储库: 输入 cd trackfind 输入 git checkout master; git pull 这只会吸引自上次部署以来的增量变化,比从头开始重新提取整个存储库要快得多,特别是如果它是一个大型存储库和/或它有很长的更改历史记录。 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-12 Click Activate Google Cloud Shell:3 Enter rm -rf trackfind4 Enter git clone -b master https://chrisjj@bitbucket.org/chrisjj/trackfind.git5 Enter appcfg.py -V 1 -A trackfind-1 update trackfind6 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:Enter cd trackfindEnter git checkout master; git pullThis 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?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持! 上岸,阿里云!