By default the local development server doesn't specify a storage path for the simulated Cloud DataStore. This means that after your computer restarts the DataStore data gets lost, it's probably stored in a temporary directory somewhere. There is a setting that can be used to make sure that the data is preserved.
Simply set the --storage_path
parameter when you run the dev_appserver.py
script. I set mine to a subdirectory, 'gae
', from my home directory, but any directory that is not a temporary directory will work. This is what the start command looks like in my case:
That's all there is to it!
A quick disclaimer...
Although I put in a great effort into researching all the topics I cover, mistakes can happen.
Use of any information from my blog posts should be at own risk and I do not hold any liability towards any information misuse or damages caused by following any of my posts.
All content and opinions expressed on this Blog are my own and do not represent the opinions of my employer (Oracle).
Use of any information contained in this blog post/article is subject to this disclaimer