I'm using Ebean in Play Framework 2 for storing some basic information. This application is pushed to Heroku. Everything seems fine, I can write/read with Ebean, but after few hours, when I access application, everything that was stored is gone.
From this source I know that when application is not accessed frequently, it needs to start. That means, running application is shut down after being idle for some time, right?
Rarely-accessed free apps take a few seconds (sometimes longer) to start up — upgrade to a paid plan if you need your app to respond quickly even the first time it’s accessed in a while
I found this question No permanent filesystem for Heroku? that explains no permanent filesystem on heroku.
So, Ebean stores data on filesystem, which means they get erased after while because of no permanent filesystem on Heroku.
I should mention that I'm using free application on Heroku. Any suggestion how to solve this? Maybe I'm missing some configuration, or something...
Edit
I use H2 database saved in file.