Google App Engine local datastore path configuration

不想你离开。 提交于 2019-12-03 15:49:00

Doing this "*--blobstore_path=/Users/me/Documents/workspace/app-name/ --datastore_path=/Users/me/Documents/workspace/app-name/datastore.rbm*", is working for me, on OS X.

I had this problem in Linux for one of the versions of GAE. What I did then was run dev_appserver.py without specifying datastore_path. I then locate dev_appserver.datastore and/or dev_appserver.rdbms (I forget which now) which was in /tmp in Linux. I then copied both these files to my ~/gae/datastore/.

After that when I ran dev_appserver.py with --datastore_path it worked without any issues.

Not sure if it will work on OS X but its worth a shot.

Possibly a sledgehammer to crack a nut here but if the patches are no help you can script the AppEngine and force it to use a different path on startup.

Have you tried inserting any data in the datastore after starting up the server with the new datastore location? When I don't insert any new data, I get the error you mention: Could not read datastore data from ....

However, when I start up my app, register, and then restart the app, I get no errors, and the new datastore location is used.

Maybe I'm misreading your question and you are inserting data after the restart. In that case, I can't reproduce your issue.

I have been struggling with this issue for a very long time. This finally worked, thanks to the answer by said-omar.

Simply add this as your flag: --datastore_path=/Users/me/Documents/workspace/app-name/datastore.rbm

..obviously changing everything before "/datastore.rbm" to point to the directory where you want the database stored.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!