开发者

A convenient way to preload data in development environment datastore

开发者 https://www.devze.com 2023-02-10 00:42 出处:网络
I\'m developing an application on Google App Engine using Maven. When I run the local server I would like to have some data preloaded in the datastore, such as the local user table. The server puts th

I'm developing an application on Google App Engine using Maven. When I run the local server I would like to have some data preloaded in the datastore, such as the local user table. The server puts the datastore file under the WEB-INF/appengine-generated of the target directory and it is cleaned before every build. Is there a convenient way 开发者_如何学编程to do so?


You have a couple of options:
a. backup and reload local_db.bin in your build steps
b. use the datastore.backing_store system property with:

dev_appserver.sh --jvm_flag= -Ddatastore.backing_store=\path\to\local_db.bin
0

精彩评论

暂无评论...
验证码 换一张
取 消