At each deploy the database is overwritten with Strapi

Posted March 11, 2021 1.3k views
Vue.jsDigitalOcean App PlatformStrapi


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?


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.

Submit an Answer
1 answer

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.

  • I’m encountering the same issue.

    I just added a managed database, postgres. Entered in an article to test if the data would remain in the new managed database. Performed a redeploy of strapi and not only was the article gone, but I had to create a new admin user again.

    Any solutions?