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

Python Google Cloud Storage sample for Google App Engine Flexible Environment

This sample demonstrates how to use Google Cloud Storage on Google App Engine Flexible Environment.

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 environment variables in app.yaml.

Running locally

Refer to the top-level README for instructions on running and deploying.

When running locally, you can use the Google Cloud SDK to provide authentication to use Google Cloud APIs:

$ gcloud init

Then set environment variables before starting your application:

$ export CLOUD_STORAGE_BUCKET=[your-bucket-name]
$ python main.py
Morty Proxy This is a proxified and sanitized view of the page, visit original site.