Skip to content

Latest commit

 

History

History

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 
 
 

README.md

Getting Started with Java - Google Compute Engine

See the Bookshelf tutorial for help getting started with Google App Engine (Standard), Google Cloud Firestore, and more.

You'll need to create a bucket in Google Cloud Storage, referred to below as MY-BUCKET. You'll also need to create an OAuth2 client and secret, and edit pom.xml with its values.

Running Locally

mvn clean jetty:run-war -DprojectID=YOUR-PROJECT-ID

Deploying to Compute Engine

  • Initialize the Google Cloud SDK

      gcloud init
    
  • In the makeProject script update the BUCKET environment variable with your bucket name.

  • Deploy your App

      ./makeProject gce
    
  • To tear down the App, use

      ./makeProject down
    

Deploying to Compute Engine with horizontal scaling

  • Initialize Google Cloud SDK and makeProject as above.

  • Deploy your App

      ./makeProject gce-many
    
  • To tear down the App, use

      ./makeProject down-many