App Engine: Development datastore cleared each time I turn off my computer. How to avoid this?

You can manually set the path with the datastore_path flag in dev_appserver.py. See the docs for details.

You can manually set the path with the --datastore_path flag in dev_appserver.py. See the docs for details.

Thanks for the link. I had looked through the docs and never came upon this article. Now I know what I'll do next time I launch my development server.

Thanks! – Damien Nov 4 at 8:19 Unfortunately my development server crashes when I try to write into the datastore when I set the --datastore_path flag. I put the traceback in my main question as an update... – Damien Nov 5 at 10:13.

This clearing should not be the default behavior. Check that this application in the Google AppEngine launcher doesn't have the --clear_datastore flag. Select app in list and select Edit->Applications Settings... Extra Command Line Flags should be empty.

I once set this to restart some tests and forgot to remove it. Remove the existing application in the launcher and Create New Application. See if that helps.

Verify the OS isn't deleted the file. If you open the log for the app, then launch it, the output says where the sqlite file is being located (e.g. T:\temp\dev_appserver. Rdbms).

Thanks for the response. Actually I'm not using the Google App Engine launcher but my terminal. Do you know where I could change these settings?

Thanks a lot. – Damien Nov 3 at 15:55 The "setting" is just a flag passed to dev_appserver. – Moishe Nov 3 at 22:09 2 The datastore is stored in the OS's temporary directory by default; most OSes clear this on boot.

– Nick Johnson Nov 4 at 7:35 Ok on my MAC it looks like it's directly under ~/tmp. I will use @moishe flag to move it somewhere else next time I launch my development server. Thanks!

– Damien Nov 4 at 8:17.

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions