From 100aca5fa60f6f291e6d2113c2aca79d39ed23b9 Mon Sep 17 00:00:00 2001 From: bach Date: Wed, 21 Apr 2021 14:37:45 +0200 Subject: [PATCH] added recusrsive submodules in deploy scripts --- assets/gitdeploy/deploy-drupal.sh | 4 +++- assets/gitdeploy/deploy-simple.sh | 1 + 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/assets/gitdeploy/deploy-drupal.sh b/assets/gitdeploy/deploy-drupal.sh index 251b30f..5247884 100644 --- a/assets/gitdeploy/deploy-drupal.sh +++ b/assets/gitdeploy/deploy-drupal.sh @@ -4,8 +4,10 @@ echo "updating drupal 8" echo "Switching to project docroot." cd ./app echo "" -echo "Pulling down latest code." +echo "Pulling down latest code and submodules." git pull --ff-only origin prod +git submodule update --init --recursive --remote + echo "" echo "Clearing drush caches." drush cache-clear drush diff --git a/assets/gitdeploy/deploy-simple.sh b/assets/gitdeploy/deploy-simple.sh index fc388b2..6f18708 100644 --- a/assets/gitdeploy/deploy-simple.sh +++ b/assets/gitdeploy/deploy-simple.sh @@ -6,5 +6,6 @@ cd ./app echo "" echo "Pulling down latest code." git pull --ff-only origin prod +git submodule update --init --recursive --remote echo "" echo "Deployment complete."