Updating Content Types on production

System Information
  • Strapi Version: 4.0.5
  • Operating System: Windows
  • Database: Maria DB
  • Node Version: 16.13.1
  • NPM Version: 8.1.2

I’m getting confused. I understand that on production I can’t update content types (content-type-builder is disabled). From the other hand it seems perfectly reasonable to update content type when I have working live production environment. I know that each time I create/make change in content type Strapi generate/change proper js file and change databse. So will it be enough if I do the following things:

  1. change content type on dev
  2. take all changend js file
  3. put them on production.

Or should I change also databes? And if so then how should I approach this?



I’m looking for an answer to the same question. I’m using a docker file. I added a new content type and stopped the container. And I lost my changes if I recreate a new container from the same image. How should I persist those changes?