O'Reilly logo

Google Cloud Platform Cookbook by Legorie Rajan PS

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

How to do it...

In this recipe, we'll run a Flask application, similar to the previous recipe, to demonstrate the debugging facility of the Stackdriver debugger. In addition to running it, the debugger should have access to the code base; in our example we'll upload the code to Google Cloud Repositories:

  1. Create the Flask VM similar to the previous recipe (step 1 and step 2) or you can re-use the machine created.
  2. SSH into the VM and make sure Python and PIP are installed.
  3. Install Git using the following command:
$ sudo apt-get update$ sudo apt-get install git
  1. Let's move out of the VM, launch a Google Cloud Shell, and create a Google source code repository. If you want to run the gcloud command to create the repository from the VM, the service ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required