简体   繁体   English

在本地主机上重置Google App Engine应用程序数据

[英]Google App Engine App data reset on localhost

I've noticed my google app engine app that I'm developing on my local host is being reset every night, even though I am only running it with the command dev_appserver.py . 我注意到我每晚在本地主机上开发的Google App Engine应用程序都会重置,即使我仅使用dev_appserver.py .命令运行它dev_appserver.py . and not explicitly resetting the data. 而不明确地重置数据。

The data/app persists during the day but seems to be reset every night. 数据/应用程序在白天持续存在,但似乎每晚都会重置。 I've checked the admin dashboard but did not find any settings pertaining to this. 我已经检查了管理控制台,但没有找到与此相关的任何设置。

Has anyone else experienced this issue? 还有其他人遇到过这个问题吗?

Thanks 谢谢

The dev server puts the datastore in a temp directory, and it resets every time you start. 开发服务器将数据存储放置在临时目录中,并在每次启动时重置。 If you want the local datastore to persist, make/use a real directory, and use the datastore_path flag: 如果要本地数据存储持久化,请创建/使用真实目录,然后使用datastore_path标志:

--datastore_path=/path/to/your/datastore/directory/dev_appserver.datastore

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

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