Question

At each deploy the database is overwritten with Strapi

Hi,

i have app by App Platform. It has components: Nuxt.js (static), Strapi and DB. I set the correct environment variables for DB. Strapi code is based on git repository. At each deploy data of Strapi is overwritten but i don’t send local DB or something else in repository.

What am i doing wrong?

Thanks.

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.

Hi,

adding Strapi-App hidden folders “.tmp” and “.cache” to .gitignore solved it for me.

This comment has been deleted

App Platform runs workloads in containers. Containers use an ephemeral (temporary) file-system. This allows us to run multiple instances of your workload simultaneously. For persistence, we recommend using a managed database. You can add a development scale Postgres database in App Platform via the “+ Add Component” -> Database link, or a production grade database via the Databases section of the DigitalOcean cloud control panel.