简体   繁体   English

如何在Google Appengine python SDK 1.8.1中迁移本地数据存储

[英]how to migrate local datastore in google appengine python SDK 1.8.1

I am using GAE python-SDK 1.7.1 and have to update to 1.8.1 and migrate the local datastore to HRD. 我正在使用GAE python-SDK 1.7.1,并且必须更新到1.8.1并将本地数据存储迁移到HRD。 The appserver is also running locally. 该应用服务器也在本地运行。 So far, all information i found is a procedure if you are using appspot "online-hosting". 到目前为止,如果您正在使用appspot“在线托管”,我发现的所有信息都是一个过程。

I just could not figure out how to migrate the local datastore. 我只是不知道如何迁移本地数据存储。 As i read, one should enable datastore_admin in order to get the button to migrate the datastore in admin interface of the appserver. 如我所读,应该启用datastore_admin以便在应用服务器的管理界面中获取用于迁移数据存储的按钮。

How do i enable this? 如何启用此功能? I found a subdir "google_appengine_SDK_python_1.8.1/google/appengine/ext/datastore_admin/". 我找到了一个子目录“ google_appengine_SDK_python_1.8.1 / google / appengine / ext / datastore_admin /”。 But I don't know how to make it available in the default admin website at " http://localhost:8080/_ah/admin ". 但是我不知道如何在默认的管理网站“ http:// localhost:8080 / _ah / admin ”上提供它。

Is there an easier way to do the migration? 有没有更简单的方法来进行迁移? Maybe a commandline tool? 也许是命令行工具?

You don't need to migrate the local datastore. 您无需迁移本地数据存储。 That's just a file on disk. 那只是磁盘上的一个文件。 All the HRD logic is in the data access API in the SDK, and the dev server is already using that. 所有的HRD逻辑都在SDK的数据访问API中,而开发服务器已经在使用它。

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

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