Google App Engine启动器删除数据存储 [英] Google App Engine Launcher delete datastore

查看:146
本文介绍了Google App Engine启动器删除数据存储的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用Google AppEngine(GAE)开发一个Web应用程序。
我使用Google AppEngine Launcher(GAEL)使用dataStore(免费,非关系型)做了一些示例。一切正确。不过,我想在部署应用程序之前删除数据存储区。
我读过,我必须使用命令
- clear_datastore
我不知道在部署或重新部署应用程序时运行服务器来删除数据存储。
我有一些方法,例如我在GAEL的应用程序设置(编辑==>应用程序设置)中编写了一些命令:

   -  clear_datastore 
--clear_datastore /< ApplicationName>
--clear_datastore< ApplicationName> /
--clear_datastore< ApplicationName>

有什么想法吗?
谢谢。
Jose

解决方案

clear_datastore 标志仅用于使用dev_appserver清除本地机器上运行的开发数据存储区。如果你想清除这个开发数据存储,那么当你运行开发应用程序服务器时,你可以使用标志:

  dev_appserver.sh  - -clear_datastore = yes< ApplicationName> 

需要注意的一点是,仅 会清除开​​发数据存储。部署应用程序时,开发数据存储不会上传。因此,在部署应用程序之前,您不应该担心清除本地数据存储。



如果要删除生产服务器中已有的实体(在App Engine上运行),那么你不能使用 dev_appserver.sh 从命令行执行此操作。您可以使用AppEngine控制台中的数据存储管理工具执行此操作。您可以按照此处的说明批量删除数据。需要注意的是,您必须首先启用数据存储管理工具,方法是遵循这些说明


I am developing a web application using Google AppEngine (GAE). I have make some examples using dataStore (free, non-relational) using Google AppEngine Launcher (GAEL). All is correct. However I'd like delete the datastore before to deploy an application. I have read that I have to use the command --clear_datastore I don't know like running the server to delete the data store when I deploy or re-deploy the application. I have chech some ways, for example I have write in the Application Settings(Edit==>Application Settings) in the GAEL some commands:

--clear_datastore
--clear_datastore /<ApplicationName>
--clear_datastore <ApplicationName>/
--clear_datastore <ApplicationName>

any idea? Thank you. Jose

解决方案

The clear_datastore flag is only used to clear the development datastore which is running on your local machine with the dev_appserver. If you want to clear this development datastore, then when you run the dev appserver you can use the flags:

dev_appserver.sh --clear_datastore=yes <ApplicationName>

An important thing to note is that this only clears the development datastore. The development datastore does not get uploaded when you deploy the application. So you shouldn't be worried about clearing the local datastore before deploying the application.

If you want to delete entities that are already in your production server (running on App Engine), then you cannot do this from the command line using dev_appserver.sh. You can do this using the Datastore Admin tool in the AppEngine console. You can follow the instructions here to bulk delete data. An important note is that you have to enable the Datastore Admin tool first by following these instructions.

这篇关于Google App Engine启动器删除数据存储的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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