Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Latest commit

 

History

History
History
 
 

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 

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
  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

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.

Morty Proxy This is a proxified and sanitized view of the page, visit original site.