GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — java-docs-samples/appengine-java8/cloudsql-postgres/README.md at master · Attil/java-docs-samples

Expand file tree

/

README.md

Copy path
More file actions
More file actions

Latest commit

 

History

History
History
49 lines (27 loc) · 1.61 KB
/

README.md

Copy path

File metadata and controls

49 lines (27 loc) · 1.61 KB
Raw
Copy raw file
Download raw file
Outline
Edit and raw actions

Postgre SQL sample for Google App Engine J8

Open in Cloud Shell

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

Setup

  • If you haven't already, Download and initialize the Cloud SDK

    gcloud init

  • If you haven't already, Create an App Engine app within the current Google Cloud Project

    gcloud app create

  • If you haven't already, Setup Application Default Credentials

    gcloud auth application-default login

  • Create an instance

  • Create a Database

  • Create a user

  • Note the Instance connection name under Overview > properties

Running locally

$ mvn clean appengine:run -DINSTANCE_CONNECTION_NAME=instanceConnectionName -Duser=root -Dpassword=myPassword -Ddatabase=myDatabase

Deploying

$ mvn clean appengine:deploy -DINSTANCE_CONNECTION_NAME=instanceConnectionName -Duser=root
-Dpassword=myPassword -Ddatabase=myDatabase

Cleaning up

  • Delete your Instance
You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.