简体   繁体   English

Google App Engine会一直删除我的本地数据库

[英]Google App Engine keeps deleting my local database

After I've stop using Google App Engine on my local database for testing, I will come back a few days later and it has removed/deleted my local datastore. 在我的本地数据库上停止使用Google App Engine进行测试后,几天后我会回来并删除/删除了我的本地数据存储区。

How can I get it to stop doing this? 我怎么能让它停止这样做? I have a large data set locally that I use for testing before deploying it and I don't want to recreate this every time I go to work on something. 我在本地拥有一个大型数据集,在部署之前我会用它进行测试,而且每次我去处理某些事情时我都不想重新创建它。

There is a checkbox in the Settings called "clear datastore on launch:, but this is unchecked. “设置”中有一个名为“启动时清除数据存储”的复选框,但未选中此复选框。

I am using the python backend. 我正在使用python后端。 Where is the local datastore stored? 本地数据存储在哪里存储? Is it in some tmp directory that keeps getting cleared? 是否在某些tmp目录中不断被清除?

The local datastore is stored in your system's temporary directory by default. 默认情况下,本地数据存储区存储在系统的临时目录中。 You can supply the --datastore_path command to specify an alternate location for the datastore. 您可以提供--datastore_path命令来指定数据存储的备用位置。

Note that it's generally a good idea to do your development in a way that doesn't rely on the contents of the local datastore remaining long-term - writing a script that loads a known test dataset is usually a good idea. 请注意,以不依赖于本地数据存储区长期内容的方式进行开发通常是个好主意 - 编写加载已知测试数据集的脚本通常是个好主意。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM