I am using Strapi as a headless cms for my website. First I have started one version only on the production environment and there was no other environment like development or staging. So when I wanted to change the models (collections and single types or etc.) I had to switch the server to run in development mode to be able to do changes. So while doing these kinds of changes, the production environment also ran out of service. After a few days, the app crashed while trying to update the database and it never started again.
So now I highly need to separate the development environment from production. But I have some questions about how to do this, and can't find solutions:
- If I develop the app locally or in a separate development environment, how should I transfer the new models to the server?
- Does production environment data survive from migration process?
- Should I create a backup from production environment data every time I do the deployment (migration) process?