This is Lesson 4 of Tutorial: Deploying an Application in Drupal 9.
Perform application updates after new code has been deployed.
In order to complete this lesson you will need:
At this point, the code for your new release is on your production server(s). However, your database has not been updated in any way.
A typical code release will require the following database-related actions to be performed:
drush updatedb
drush config-import
drush features-revert-all
drush cache-rebuild
Depending on the changes that your release contains, these commands may need to be run in a specific order or even multiple times. The consequences of running these commands incorrectly can be subtle and complex.
Important
When creating a new Acquia Cloud CD environment, the post-code-deploy
hook is not run, and this hook must be run twice for its changes to take effect. For more information, see this known issue.
Acquia Cloud Hooks provide a mechanism for executing a script when a particular action is performed. For releases, the post-code-update
and post-code-deploy
cloud hooks are relevant. These will allow a custom script to be executed each time that a new tag is deployed to your production environment.
To implement a cloud hook, you must create an executable bash script and place it in a specific location in your codebase.
If this content did not answer your questions, try searching or contacting our support team for further assistance.
Wed Oct 22 2025 08:59:29 GMT+0000 (Coordinated Universal Time)