我的本地App Engine数据存储在哪里? [英] Where is my local App Engine datastore?
问题描述
如何找到我的本地开发数据存储位置?我正在使用 Python SDK 和 Linux 。
我认为这取决于您是否拥有Java或Python SDK。
对于Python,以下是谷歌的说明:
Web服务器在启动时会打印正在使用的数据存储文件的位置,您可以复制该文件,然后在更换数据存储文件后,务必重新启动Web服务器。
要更改用于数据存储文件的位置,使用--datastore_path选项:
dev_appserver.py --datastore_path = / tmp / myapp_datastore myapp
更多信息: http://code.google.com/appengine/docs/python/tools/devserver.html
How can I find where my local development datastore is located? I am using the Python SDK and Linux.
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
这篇关于我的本地App Engine数据存储在哪里?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!