#!/bin/bash echo "updating drupal" echo "Switching to project docroot." cd ./public_html echo "" echo "Pulling down latest code." git pull --ff-only origin prod git submodule update --init --recursive echo "" echo "Clearing drush caches." vendor/bin/drush cache-clear drush echo "" echo "Composer install." composer install --no-dev echo "" echo "Running database updates." vendor/bin/drush updb -y echo "" echo "Importing configuration." vendor/bin/drush config-import -y echo "" echo "Clearing caches." vendor/bin/drush cr echo "" echo "Deployment complete."