X Tutup
Skip to content

Latest commit

 

History

History
 
 

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 

README.md

Postgres SQL sample for Google App Engine Java 11

Open in Cloud Shell

This sample demonstrates how to use PostgreSql on Google App Engine standard Java 11

Setup

  • Download and initialize the Cloud SDK

    gcloud init

  • If this is your first time creating an App engine application:

   gcloud app create

Configuring the Env Variables in app.yaml

Edit the app.yaml file and change the 4 env variables to match your environment:

env_variables:
  DB_INSTANCE: PROJECT:us-central1:instance
  DB_DATABASE: DBname
  DB_USER: postgres
  DB_PASSWORD: password

Deploying

 mvn clean package appengine:deploy -Dapp.deploy.projectId=<your-project-id>

Cleaning up

X Tutup