Saturday, May 6, 2023

How to deploy your Node.js app with Google

 How to deploy your Node.js app with Google

Get Project List


    Get projects list on google cloud
gcloud projects list
Set Project
gcloud config set project example-medium

Set Environmental Variables


runtime: nodejs10

env_variables:
  DB_USER: "root"
  DB_NAME: "database"
  DB_PASS: "xyz1234pbj"
  DB_INSTANCE: "project-name:us-central1:sql-instance"
  TESTVAR: "hehehe"
  TWILIO_SID: "XYZ1234PBJ"
  TWILIO_AUTH_TOKEN: "XYZ1234PBJ"
  GOOGLE_CLIENT_ID: "xyz1234PBJ.apps.googleusercontent.com"   GOOGLE_CLIENT_SECRET: "xyz1234-PBJ"