Question

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?

Subscribe
Share

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

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.

Hello,

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:

https://docs.digitalocean.com/products/app-platform/how-to/manage-databases/

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

https://docs.digitalocean.com/products/app-platform/how-to/store-data/

Hope that this helps!

Best,

Bobby