Search code examples
google-app-enginegoogle-cloud-sdk

How to use Google Cloud SDK in local environment


I am currently using Google's 'legacy standalone SDK' for management of my google app engine python projects. This provides a nice GUI where I can select and run a project locally and then deploy it when I'm happy with testing.

I recently received the following message from Google '... App Engine app that has used the legacy standalone SDK in the past 30 days, and need to be migrated to Cloud SDK' so I installed the Cloud SDK.

The provided Google Cloud SDK Shell a) runs as a dos window, and b) appears to duplicate the on-line (live) Dashboard. Given that I can't change (local) code and deploy without testing, my questions are:- 1) how do I run a project locally? 2) how do I view local logs? 3) when happy, how do I deploy? or... is there GUI for the Local Environment? or... is the above documented somewhere that I have not found?

Many thanks and apologies if this is a dumb question. David


Solution

  • On July 30, 2019, the standalone App Engine SDK is deprecated. Here you can check documentation how to migrate from AppCft to gcloud command line

    1. How to test your application locally?

      For Python you can use Local Development Server that includes Cloud Datastore Emulator. (There is also solution for Java Java 8 Local Development Server).

    2. How to view logs locally?

      In python to debug your code from the command line use interactive console. You have to import to your code PDB debbuger

    3. How to deploy application?

      You deploy your app with gcloud command gcloud app deploy. Cloud SDK does not include GUI for deployment.