Where is my local App Engine datastore?

前端 未结 10 2171
南旧
南旧 2020-12-16 01:02

How can I find where my local development datastore is located? I am using the Python SDK and Linux.

相关标签:
10条回答
  • 2020-12-16 01:41

    To find the file location for the local AppEngine datastore on MacOSX/Python, you can run the following command:

    dev_appserver.py -help

    Mine was at something like:

    /var/folders/uP/uP1GHkGKGqO7QPq+eGMmb++++TI/-Tmp-/dev_appserver.datastore

    0 讨论(0)
  • 2020-12-16 01:41

    Since it's top question on Google search and I spent quite amount of time searching for an answer I'll say that on Windows/Java mix DB file called local_db.bin.

    0 讨论(0)
  • 2020-12-16 01:43

    I think it depends on if you got Java or Python SDK.

    For Python, here's what the instructions say from Google: "The web server prints the location of the datastore file it is using to the terminal when it starts up. You can make a copy of the file, then restore them later to reset the datastore to a known state. Be sure to restart the web server after replacing the datastore file.

    To change the location used for the datastore file, use the --datastore_path option:

    dev_appserver.py --datastore_path=/tmp/myapp_datastore myapp
    

    more info here: http://code.google.com/appengine/docs/python/tools/devserver.html

    0 讨论(0)
  • 2020-12-16 01:45

    The default location of the datastore for the platform you're running the app engine on is provided in the README that comes with the platform (at least, in the one for Linux). The README is in google_appengine_x.x.xx/google_appengine/README. This is what is says in the Linux'es one:

    --datastore_path=DS_FILE Path to file to use for storing Datastore file stub data. (Default /tmp/dev_appserver.datastore)

    0 讨论(0)
提交回复
热议问题