Add a deploy hook for `drush deploy`?

Created on 5 February 2024, 11 months ago

Problem/Motivation

Drush 10.3 added a drush deploy command that runs these commands:

drush updatedb --no-cache-clear
drush cache:rebuild
drush config:import
drush cache:rebuild
drush deploy:hook

However, if someone uses Config Ignore, and the config_ignore.settings.yml file changed and this command is run, there could still be config to import. drush config:import should be run again if a previously ignored file is no longer ignored and should be imported.

Steps to reproduce

Ignore a file. Deploy. Un-ignore the file. Deploy. You should then run config import again, and see there was still config to import.

Proposed resolution

A deploy hook can be created that will import config and rebuild the cache again. However, it looks like the hook would only be run once.

Maybe there is a way to delete the record that it ran, in order to make it run every time drush deploy is run? Or maybe there's another solution?

Remaining tasks

User interface changes

API changes

Data model changes

Feature request
Status

Closed: won't fix

Version

3.0

Component

Code

Created by

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Production build 0.71.5 2024