Skip to content

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

Notifications You must be signed in to change notification settings

jimafisk/content_mig

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 

Repository files navigation

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

About

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

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages