How to manually install directly from Bitbucket in Google App Engine?

To manually deploy from a modified source in the Bitbucket repository (named trackfind) to the Google App Engine application (ID trackfind-1), I do this:

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

2 Click Activate Google Cloud Shell:

enter image description here

3 Enter rm -rf trackfind

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

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

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

I am sure there should be a quick, direct way, for example. avoiding repository cloning every time. (I'm not interested in indirect methods, for example, using a local machine or an additional virtual machine to run, for example, a third-party tool such as Jenkins.)

What it is?

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

+1
source share
1 answer

You can speed trackfind up a bit by reusing the existing trackfind repository:

  1. Enter cd trackfind

  2. Type git checkout master; git pull git checkout master; git pull

This will only lead to a delta change since the last deployment, which can be significantly faster than re-retrieving the entire repository from scratch, especially if it is a large repository and / or it has a long history of changes.

+1
source

Source: https://habr.com/ru/post/1261818/


All Articles