Sync Views for different environments

To dump configurations you should use cli:
https://strapi.io/documentation/v3.x/cli/CLI.html#strapi-configuration-dump

As an idea how to automate this:

  • Add a script to package.json that generates the dump and then does the git add dump.json && git commit -m "add dump configurations" && git push
  • Add a script that imports the config file.
  • Before making the final push you should always run this script if you modified something in configurations.
  • On production, after running the git pull, you should run the script that imports the configurations.