deploy.sh 514 B

1234567891011121314151617181920212223242526
  1. #!/bin/bash
  2. echo "updating drupal 9"
  3. echo "Switching to project docroot."
  4. cd ./src
  5. echo ""
  6. echo "Pulling down latest code."
  7. git pull --ff-only origin prod
  8. git submodule update --recursive --remote
  9. echo ""
  10. echo "Clearing drush caches."
  11. drush cache-clear drush
  12. echo ""
  13. echo "Composer install."
  14. composer install --no-dev
  15. echo ""
  16. echo "Running database updates."
  17. drush updb -y
  18. echo ""
  19. echo "Importing configuration."
  20. drush config-import -y
  21. echo ""
  22. echo "Clearing caches."
  23. drush cr
  24. echo ""
  25. echo "Deployment complete."