我的本地App Engine数据存储在哪里? [英] Where is my local App Engine datastore?

查看:76
本文介绍了我的本地App Engine数据存储在哪里?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何找到我的本地开发数据存储位置?我正在使用 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屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆