Igor Kromin |   Consultant. Coder. Blogger. Tinkerer. Gamer.

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:
 Dev Server Command
dev_appserver.py --port=8080 --log_level=debug --dev_appserver_log_level=info --storage_path=~/gae app.yaml


That's all there is to it!



-i

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.
Hi! You can search my blog here ⤵
NOTE: (2022) This Blog is no longer maintained and I will not be answering any emails or comments.

I am now focusing on Atari Gamer.