I disable admin updates on production sites, and update Craft and its plugins by updating in the development environment, and then deploying to production using Git.

My basic process starts like this:

  1. Update Craft/Plugins in the development environment
  2. Commit updated composer.json and composer.lock
  3. On production, pull changes from Git
  4. Run composer install

What additional steps are necessary to ensure that the production site is updated correctly?

I'm aware that we still have to run:

  • ./craft project-config/sync
  • ./craft migrate/up

Should we also run these commands?

  • ./craft clear-caches/all
  • ./craft queue/run

Are there any other commands that should be run to help ensure a smooth update? Also, what is the correct order to run them in?


Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.