Skip to content
Uses git pre-commit and post-merge hooks to send content from source to destination
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
README.md
post-merge
pre-commit

README.md

content_mig

Uses git pre-commit and post-merge hooks to send content from source to destination

##Use case

You want Drupal 8 node, block, user, or menu content transferred from a source to a destination. These hooks help move things that aren't tracked by CMI. Essentially a mysqldump is run on the source when commiting code via git and then the MySQL tables are updated on the destination when merging code (merging branch or git pull). The scripts ask for user import to determine when to export or import content. The scripts also try to find your database connection info by searching settings.php.

##Setup

1.) Download "pre-commit" and "post-merge" files from this repository
2.) Put files in the hooks directory of your git enabled project so they appear like so:
    .git/hooks/pre-commit
    .git/hooks/post-merge
3.) Make sure the scripts are executable:
    chmod u+x .git/hooks/pre-commit
    chmod u+x .git/hooks/post-merge

You can’t perform that action at this time.