aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSilvio Rhatto <rhatto@riseup.net>2018-08-24 13:56:16 -0300
committerSilvio Rhatto <rhatto@riseup.net>2018-08-24 13:56:16 -0300
commit47210c82447b2a4f9be73150d15a3d24013f5bc5 (patch)
tree94e8aa5bd7dacc5f7198c5fd07e9825ac1223a34
parentfa8b5e45d706871d9b05411dcd3b15d20ab7fe36 (diff)
downloadtemplater-47210c82447b2a4f9be73150d15a3d24013f5bc5.tar.gz
templater-47210c82447b2a4f9be73150d15a3d24013f5bc5.tar.bz2
Drupal: adds sync_files_from_development and sync_files_from_production
-rw-r--r--share/templater/drupal7/files/Makefile.drupal78
-rw-r--r--share/templater/drupal8/files/Makefile.drupal88
2 files changed, 16 insertions, 0 deletions
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/