vampd / drupal

A chef recipe to manage Drupal.
4 stars 13 forks source link

Post Deploy Action Scripts #20

Closed chrisolof closed 9 years ago

chrisolof commented 9 years ago

I'm working on a site that needs a script run post-import. This, as @arknoll pointed out in another conversation, could also be helpful for sites set up with Acquia Cloud Hooks. Firing the script could be accomplished with a new "scripts" section under [:drupal][:sites][site_name][:drupal][:deploy]:

"scripts":{ "post_deploy": [], "post_install": [], "post_import": ["hooks/dev/post-db-copy/hello-world.sh"], "post_update": [] }

The scripts could be run in the site repo's root, and fired when specified above.