简体   繁体   English

Google App Engine删除本地数据存储

[英]Google App Engine Deleting Local Data Store

I'm running GAE locally on my mac with pycharm and periodically it seems to delete my local entity datastore. 我在我的Mac上使用pycharm在本地运行GAE,并且周期性地似乎删除了本地实体数据存储。 I'm not really sure what's happening and I've taken to keeping a backup but on my old windows machine this was never an issue. 我不是很确定发生了什么,我已经做好了备份的准备,但是在我的旧Windows计算机上,这从来都不是问题。

Is there a way to change the setup so that this doesnt happen? 有没有办法更改设置,以免发生这种情况?

You can specify a fixed location for your local datastore by adding the datastore_path option to your startup. 您可以通过将datastore_path选项添加到启动中来为本地数据存储指定一个固定位置。

dev_appserver.py --datastore_path=/tmp/myapp_datastore myapp

Otherwise, the temp location of the datastore may change and will be recreated. 否则,数据存储的临时位置可能会更改,并将重新创建。

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

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