From 47210c82447b2a4f9be73150d15a3d24013f5bc5 Mon Sep 17 00:00:00 2001 From: Silvio Rhatto Date: Fri, 24 Aug 2018 13:56:16 -0300 Subject: Drupal: adds sync_files_from_development and sync_files_from_production --- share/templater/drupal7/files/Makefile.drupal7 | 8 ++++++++ share/templater/drupal8/files/Makefile.drupal8 | 8 ++++++++ 2 files changed, 16 insertions(+) diff --git a/share/templater/drupal7/files/Makefile.drupal7 b/share/templater/drupal7/files/Makefile.drupal7 index 3662c59..690a438 100644 --- a/share/templater/drupal7/files/Makefile.drupal7 +++ b/share/templater/drupal7/files/Makefile.drupal7 @@ -182,3 +182,11 @@ perms: deploy: perms reset submodules drush cc all drush features-revert -y $(FEATURE) + +sync_files_from_development: + rsync -avz --delete $(DEVELOPMENT)/sql/dumps/ sql/dumps/ + rsync -avz --delete $(DEVELOPMENT)/files/ files/ + +sync_files_from_production: + rsync -avz --delete $(PRODUCTION)/sql/dumps/ sql/dumps/ + rsync -avz --delete $(PRODUCTION)/files/ files/ diff --git a/share/templater/drupal8/files/Makefile.drupal8 b/share/templater/drupal8/files/Makefile.drupal8 index 8871556..fe53066 100644 --- a/share/templater/drupal8/files/Makefile.drupal8 +++ b/share/templater/drupal8/files/Makefile.drupal8 @@ -199,3 +199,11 @@ perms: deploy: perms reset submodules drush cache-rebuild drush config-import -y + +sync_files_from_development: + rsync -avz --delete $(DEVELOPMENT)/sql/dumps/ sql/dumps/ + rsync -avz --delete $(DEVELOPMENT)/files/ files/ + +sync_files_from_production: + rsync -avz --delete $(PRODUCTION)/sql/dumps/ sql/dumps/ + rsync -avz --delete $(PRODUCTION)/files/ files/ -- cgit v1.2.3