What is the correct process to keep local and production sites in sync when using drupal-composer/drupal-project. Most of the solutions online only discuss updating one site and not dev, staging and production properties.
This is the current process I am using
put live site in maintenance mode
run composer update drupal/core --with-dependencies -vvv
- I run this on both local and production servers
- I noticed that this does not sync alpha and beta contributed modules
- I noticed that running 'composer update' from the root of the project updates core and all contrib modules
run drush updb
- I run this on both local and production servers
I then commit changes to git from the local site
I just want to find out what otheres are doing to keep multiple sites in sync