App redeploy wipes database

I have an App with a Strapi instance and a database connected to it. Everytime I redeploy aka push to the master branch of the Strapi repo, it redeploys the whole app including the database. Obviously this is not intended. How can I exclude the database from the redeploy process?

Submit an answer

This textbox defaults to using Markdown to format your answer.

You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

Sign In or Sign Up to Answer

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

Want to learn more? Join the DigitalOcean Community!

Join our DigitalOcean community of over a million developers for free! Get help and share knowledge in Q&A, subscribe to topics of interest, and get courses and tools that will help you grow as a developer and scale your project or business.


The DigitalOcean App Platform storage is ephemeral, meaning that anything stored on the local storage would be lost after a redeployment.

This is why you should not run your database on the App Platform itself but use a Managed Database:

For more information on the App storage, make sure to check out the documentation here:

Hope that this helps!