deploy-drupal.sh 480 B

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