Releasing New Versions of Google App Engine Services [DEMO]
Hafeez Baig
28 steps
8 minutes
Google Cloud
This lab is the continuation of - <https://scribehow.com/o/ZY1mpfUWREm8HX6hm6Zx_w/viewer/Exploring_Google_App_Engine_DEMO_2002099911__wyeKDDmDSQ-8Z9Emz6LMeA>
1
Go to default service / **main.py** and change the My Default Service - V2 to **My Default Service - V3**
2
On the navigantion bar click on the **File** option
3
Click on the **Save** option
4
In the Cloud Shell Terminal type the command [[gcloud app deploy --version=v3 --no-promote]]
5
Terminal will prompt you **Do you want to continue (Y/n):** type **Y**
6
Wait for the operations to complete
7
Copy the link of **Deployed service \[default\]**
8
Paste the link in the new tab, **My Default Service - V2** is displayed
9
Reload the page multiple times to view the new versions
10
Go back to the **Versions** tab
11
On the left side bar click on the **Services** option
12
**Services** page will open, click on the **default** Service
13
Click on the **3 versions** hyperlink
14
**Versions** page will open, click on the Version **v3**
15
On the new tab **My Default Service - V3** is displayed
16
Go back to the **Cloud Shell** tab
17
In the **Cloud shell Terminal** type the command [[gcloud app services set-traffic --splits=v2=0.5,v3=0.5]]
18
Terminal will prompt you **Do you want to continue (Y/n):** type **Y**
19
Traffic split for the default service is done
20
Go back to the **My Default Service - V2** tab
21
Reload the page multiple times
22
Go back to the **Cloud Shell Terminal** tab
23
Type the command \ [[gcloud app service set-traffic --splits=v3=1 --split by=random]]
24
Terminal will prompt you **Do you want to continue (Y/n):** type **Y**
25
Traffic splitting for the default service is done
26
Go back to the **My Default Service - V2** tab
27
Refresh the page multiple times
28
You will observe that now the traffic is redirected to **My Default Service - V3**
Congratulations on completing this lab Playing with Google App Engine
Releasing New Versions of Google App Engine Services [DEMO]
Hafeez Baig
28 steps
8 minutes
Google Cloud
This lab is the continuation of - <https://scribehow.com/o/ZY1mpfUWREm8HX6hm6Zx_w/viewer/Exploring_Google_App_Engine_DEMO_2002099911__wyeKDDmDSQ-8Z9Emz6LMeA>
1
Go to default service / **main.py** and change the My Default Service - V2 to **My Default Service - V3**
2
On the navigantion bar click on the **File** option
3
Click on the **Save** option
4
In the Cloud Shell Terminal type the command [[gcloud app deploy --version=v3 --no-promote]]
5
Terminal will prompt you **Do you want to continue (Y/n):** type **Y**
6
Wait for the operations to complete
7
Copy the link of **Deployed service \[default\]**
8
Paste the link in the new tab, **My Default Service - V2** is displayed
9
Reload the page multiple times to view the new versions
10
Go back to the **Versions** tab
11
On the left side bar click on the **Services** option
12
**Services** page will open, click on the **default** Service
13
Click on the **3 versions** hyperlink
14
**Versions** page will open, click on the Version **v3**
15
On the new tab **My Default Service - V3** is displayed
16
Go back to the **Cloud Shell** tab
17
In the **Cloud shell Terminal** type the command [[gcloud app services set-traffic --splits=v2=0.5,v3=0.5]]
18
Terminal will prompt you **Do you want to continue (Y/n):** type **Y**
19
Traffic split for the default service is done
20
Go back to the **My Default Service - V2** tab
21
Reload the page multiple times
22
Go back to the **Cloud Shell Terminal** tab
23
Type the command \ [[gcloud app service set-traffic --splits=v3=1 --split by=random]]
24
Terminal will prompt you **Do you want to continue (Y/n):** type **Y**
25
Traffic splitting for the default service is done
26
Go back to the **My Default Service - V2** tab
27
Refresh the page multiple times
28
You will observe that now the traffic is redirected to **My Default Service - V3**
Congratulations on completing this lab Playing with Google App Engine