[英]How to avoid losing local Google Cloud Storage data after restarting a local App Engine app?
Now, after restarting a local App Engine app, local Google Cloud Storage data will be lost. 现在,重新启动本地App Engine应用后,本地Google云端存储数据将会丢失。 How to avoid this? 怎么避免这个?
[update] I use Java. [更新]我使用Java。 It seems the Cloud Storage data is not saved in \\war\\WEB-INF\\appengine-generated. 云存储数据似乎未保存在\\ war \\ WEB-INF \\ appengine-generated中。 When I use CTRL-C to terminate the server and restart it again, the data saved in Cloud Storage will not be found. 当我使用CTRL-C终止服务器并再次重新启动时,将无法找到保存在云存储中的数据。
Do you mean a local version of the datastore? 你的意思是数据存储的本地版本? Add a flag like this: --datastore_path=/some/path/to/store/a/local/datastore/dev_appserver.datastore
. 添加如下标志:-- --datastore_path=/some/path/to/store/a/local/datastore/dev_appserver.datastore
。 It will store a local version that will persist. 它将存储将持久存在的本地版本。 Otherwise, it overwrites the temp version every time you restart the app. 否则,每次重新启动应用程序时它都会覆盖临时版本。
Lipis is correct. 利普斯是对的。 There are other commands that may be more suitable. 还有其他命令可能更合适。 From the Command-line arguments : 从命令行参数 :
--storage_path=...
Path at which all local files (such as the Datastore, Blobstore files, Google Cloud Storage Files, logs, etc) will be stored, unless overridden by --datastore_path, --blobstore_path, --logs_path, etc.
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.