Created
January 8, 2016 14:35
-
-
Save chrisfree/78996998f7a66e8c3ece to your computer and use it in GitHub Desktop.
Example Drupal 8 Deployment with Drush
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
echo "" | |
echo "Switching to project docroot." | |
cd /var/www/chromatichq.com/docroot | |
echo "" | |
echo "Pulling down the latest code." | |
git pull origin master | |
echo "" | |
echo "Clearing drush caches." | |
drush cache-clear drush | |
echo "" | |
echo "Running database updates." | |
drush updb -y | |
echo "" | |
echo "Importing configuration." | |
drush config-import -y | |
echo "" | |
echo "Clearing caches." | |
drush cr | |
echo "" | |
echo "Deployment complete." |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment