jmcombs
3/24/2019 - 2:41 PM

Google Cloud References

Various references for when I am using Google's App Engine for NodeJS

Using gcloud SDK

  • Authenticate gcloud SDK inside of Docker Container

    gcloud auth login -no-launch-browser.

  • List current Project

    gcloud config list

  • Change Project

    gcloud config set project [YOUR_PROJECT_ID]

  • Deploy App

    gcloud app deploy

  • Tail Logs (Good for debugging live)

    gcloud app logs tail -s default

  • Update gcloud

    gcloud components update

app.yaml

Map Domains to App Enginer

Google API Impersonation for Postman

Stackoverflow - Using Postman to access OAuth 2.0 Google APIs

runtime: nodejs10
handlers:
- url: /.*
  script: auto
  secure: always
  redirect_http_response_code: 301
env_variables:
  DEBUG: "app,app:*"