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-java11/gaeinfo at main · patrickmoy/java-docs-samples

Expand file tree

/

gaeinfo

/
Copy path

Directory actions

More options

More options

Directory actions

More options

More options

Latest commit

 

History

History
History
 
 
/

gaeinfo

/
Copy path

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
src/main
src/main
 
 
README.md
README.md
 
 
pom.xml
pom.xml
 
 

README.md

Outline

Google App Engine Information App for Java11

Open in Cloud Shell

This sample demonstrates how to show all system environment metadata and properties on Google App Engine standard app.

Setup your Google Cloud Platform Project

  • 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

Setup the Sample App

  • Copy the sample apps to your local machine:
  git clone https://github.com/GoogleCloudPlatform/java-docs-samples
  • Add the appengine-simple-jetty-main Main class to your classpath:
  cd java-docs-samples/appengine-java11/appengine-simple-jetty-main
  mvn install
  • Move into the appengine-java11/gaeinfo directory and compile the app:
  cd ../gaeinfo
  mvn package

Deploy

  • Deploy to App Engine standard environment using the following Maven command.
   mvn clean package appengine:deploy
  • Direct your browser to https://<your-project-id>.appspot.com.
  • View more in-depth metrics data on the StackDriver Monitoring Dashboard

Note: The first time the app is run (or after any metrics definitions have been deleted) it may take up to 5 minutes for the MetricDescriptors to sync with StackDriver before any results are shown. If you do not see results, please wait a few moments and try again.

You are visitor 01402520 — 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.