Skip to content

vasanthnathan/test-gcloud-on-gae

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

22 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

test-protobuf-on-gae

Testing Google Protobuf on App Engine

See import fix and actual project.

Deploying

To deploy set application ID and version environment variables

export APP_ID="foo"
export APP_VERSION="bar"

and then run

make deploy

Authentication

Make sure to visit the APIs console at

https://console.developers.google.com/project/<YOUR-PROJECT>/apiui/api

and enable "Google Cloud Datastore API".

In addition, make sure the App Engine Service Account has permissions as a member of your project:

https://console.developers.google.com/project/<YOUR-PROJECT>/permissions

and add the email

<YOUR-PROJECT>@appspot.gserviceaccount.com

Due to the lines

from google.appengine.api.app_identity import get_application_id
...
APP_NAME = get_application_id()
...
if APP_NAME is None:
    DATASET = None
else:
    DATASET = CONNECTION.dataset(APP_NAME)

Hacks Used

  • Disabling GCE environ check since we know we're on App Engine.
  • Using gae-pytz and Updating pytz imports for App Engine.
  • Removing dependency on pkg_resources.get_distribution for application version (used in User Agent).

About

Testing Google Protobuf on App Engine

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 92.2%
  • Shell 4.3%
  • Makefile 3.5%