Skip to content

How to share App Engine SDK's local Datastore with google-cloud app? #1513

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
MeLight opened this issue Aug 20, 2016 · 7 comments
Closed

How to share App Engine SDK's local Datastore with google-cloud app? #1513

MeLight opened this issue Aug 20, 2016 · 7 comments
Assignees
Labels
api: datastore Issues related to the Datastore API. type: question Request for information or clarification. Not an issue.

Comments

@MeLight
Copy link

MeLight commented Aug 20, 2016

Hi,
I'm building an app which should share the Datastore with an App Engine app. I want to test this locally, so I've read in the troubleshooting guide that I have to use gcd.sh and point it to a directory with a pre-created Datastore project.

Is there a way to serve the App Engine SDK's Datastore from this folder? Or do I need to setup some sort of intricate process in order to copy the contents of the App Engine SDK Datastore to the one server from the special folder?

I'm on Windows 10 for dev, and GCE Linux for deployment.

@stephenplusplus stephenplusplus added type: question Request for information or clarification. Not an issue. api: datastore Issues related to the Datastore API. labels Aug 22, 2016
@stephenplusplus
Copy link
Contributor

@pcostell

@pcostell
Copy link
Contributor

Currently it's not possible to share local backends between the Cloud Datastore emulator and the App Engine specific emulator.

@stephenplusplus can you move this issue over to google-cloud-datastore?

@MeLight
Copy link
Author

MeLight commented Aug 22, 2016

@pcostell so no way to develop it locally?

@stephenplusplus
Copy link
Contributor

Uh oh, speaking of App Engine, looks like the GitHub issue mover is down :) https://github-issue-mover.appspot.com

Moved to googleapis/google-cloud-datastore#137

@stephenplusplus
Copy link
Contributor

@MeLight you can indeed develop locally with the Datastore emulator and this library. We have a section in our docs about using the Datastore emulator as well: https://googlecloudplatform.github.io/google-cloud-node/#/docs/google-cloud/0.38.3/datastore

If you have more questions about how to use, try our tag on StackOverflow: http://stackoverflow.com/questions/tagged/gcloud-node

@ryanlinnane
Copy link

Is there any reason the backends can't be shared? I would guess that operating a full systems with all of its parts would be a more comfortable local experience if the datastore could be shared between devappserver and other programs.

@cgwy
Copy link

cgwy commented May 2, 2018

Heads up! If your GAE app uses python27 standard runtime, running locally, it can use the cloud datastore emulator now!

Documentation:
https://cloud.google.com/appengine/docs/standard/python/tools/using-local-server#using_the_local_datastore

Details on how to turn on this feature:
https://cloud.google.com/appengine/docs/standard/python/tools/migrate-cloud-datastore-emulator

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
api: datastore Issues related to the Datastore API. type: question Request for information or clarification. Not an issue.
Projects
None yet
Development

No branches or pull requests

5 participants