Skip to content

Latest commit

 

History

History
 
 

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 

README.md

Cloud Storage sample for Google Maanged VMs

This sample demonstrates how to use Cloud Storage on Google Managed VMs

Setup

Before you can run or deploy the sample, you will need to do the following:

  1. Enable the Cloud Storage API in the Google Developers Console.
  2. Create a Cloud Storage Bucket. You can do this with the Google Cloud SDK with the following command: $ gsutil mb gs://[your-bucket-name]
  3. Set the default ACL on your bucket to public read in order to serve files directly from Cloud Storage. You can do this with the Google Cloud SDK with the following command: $ gsutil defacl set public-read gs://[your-bucket-name]
  4. Update the bucket name in src/main/appengine/app.yaml.

Running locally

$ mvn clean jetty:run

Deploying

$ mvn clean gcloud:deploy