Skip to content

Commit

Permalink
Merge pull request #16 from xima-media/Include-drush-deploy-hooks
Browse files Browse the repository at this point in the history
Include drush deploy hooks
  • Loading branch information
Defcon0 authored Feb 10, 2025
2 parents 9803efe + d4fef1f commit 9490fe9
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 0 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,10 @@ All notable changes to this project will be documented in this file.

## [Unreleased]

### Added

- run drush deploy hooks during drupal deployments

## [1.1.6] - 2025-01-06

### Fixed
Expand Down
3 changes: 3 additions & 0 deletions deployer/drupal/task/deploy.php
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,9 @@
// Drupal: import config
'deploy:configuration:import',

// Drupal: run deploy hooks
'deploy:hook:deploy',

// Drupal: clear the cache
'deploy:cache:clear',

Expand Down
8 changes: 8 additions & 0 deletions deployer/drupal/task/deploy_hook.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
<?php

namespace Deployer;

desc('Run deploy hooks');
task('deploy:hook:deploy', function () {
runExtended('cd {{drupal_site_path}} && {{drush}} deploy:hook -y');
});

0 comments on commit 9490fe9

Please sign in to comment.