Browse Source

added recusrsive submodules in deploy scripts

bach 3 years ago
parent
commit
100aca5fa6
2 changed files with 4 additions and 1 deletions
  1. 3 1
      assets/gitdeploy/deploy-drupal.sh
  2. 1 0
      assets/gitdeploy/deploy-simple.sh

+ 3 - 1
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

+ 1 - 0
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."