Where is my local App Engine datastore?

前端 未结 10 2168
南旧
南旧 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:21

    For Python u can make access to datastore admin interface path:' /_ah/' or

    add the app handler to app.yaml

    - url: /admin/.*
      script: $PYTHON_LIB/google/appengine/ext/admin
      login: admin
    

    and access it at /admin/

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

    I'll restate a solution to getting permanent datastore as it worked for me (circa Feb 2017), running GoogleAppEngineLauncher on OS X v10.10.

    • Create the folder path for permanent datastore
    • In GAEL, click on the project in question e.g. PROJECTNAME
    • Click Edit-Application Settings
    • in Extra Flags field:

      --datastore_path=/Users/foo/GAE_datastore/PROJECTNAME/datastore.db

    Filename has to be included; in my config, datastore.db works.

    Having searched all over for GAE datastore path, and head-bonked on dev_appserver.py --datastore_path command line, it was very helpful to find this.

    Application Settings under the Edit menu is an odd choice, Google :-)

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

    I use OS X Mavericks (10.9), Python 2.7.5, and Google App Engine SDK 1.9.3 (Python). None of the above worked for me, however, referencing @alsmola's answer, I executed sudo find / | grep datastore.db and found the file in /private/var/folders/vw/7w1zhkls4gb1wd8r160c36300000gn/T/appengine.YYYY.XXXXX/datastore.db (YYYY is the project name, XXXXX is my username).

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

    I'm using Windows 7 with the Python SDK. My local datastore is located at

    C:\Users\[username]\AppData\Local\Temp\dev_appserver.datastore
    
    0 讨论(0)
  • 2020-12-16 01:36

    I think a lot of the answers on this page are out of date. Under the current Python dev kit (1.8.6) on Windows 7 I eventually found the datastore at:

    c:\Users\[username]\AppData\Local\Temp\appengine.[appname]\datastore.db
    

    I couldn't find this info in anything dev_appserver.py printed out, either with normal startup options or with --help. On other OSes you might try searching for a file called datastore.db.

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

    With Maven the files are sitting here:

    target/{buildName}/WEB-INF/appengine-generated/
    
    0 讨论(0)
提交回复
热议问题