trilbymedia / grav-plugin-git-sync

Collaboratively Synchronize your Grav `user` folder hosted on GitHub, BitBucket or GitLab
Apache License 2.0
243 stars 58 forks source link

Added Git Sync triggerable on all admin events #88

Closed BasileTrujillo closed 6 years ago

BasileTrujillo commented 6 years ago

This proposal add an option in the plugin to trigger a synchronization on all admin save event. I also display the folder option in the blueprint to help parametrize witch folder we want to synchronize.

The initial goal was to get a website always sync with a git repo (almost the whole /user content). The actual plugin only trigger a sync on page save events whereas we can change configurations and use plugins in the Admin BO.

The only con of this feature is that it add latency to all admin save action (not only in the page module). But maybe this is related to remote git latency...

w00fz commented 6 years ago

Thanks for this @BasileTrujillo . I actually ended up merging #105 which is doing what you do but allows to nitpick what to actually allow and don't allow on save.