After each deployment to digital ocean app platform I need to create a new admin user to login to strapi and all the data I entered in the previous deployment is gone.
In my digital ocean app I have a web service component holding the strapi build and a db component with the database (postgres).
I have the database configuration in env > production > database.js file like so:
and in the app env variables I’ve put the DATABASE_URL=${db.DATABASE_URL} key.
I don’t know how to make the data to stay after each deploy, is it because the database is not connected properly to the strapi app? or maybe it is just impossible to use strapi in app platform??
finally its working for me as well. its just i forgot to add a env folder in config for production, so he was still trying to use sqlite in prod. Lost a few hours with this