Skip to content

Instantly share code, notes, and snippets.

@chrisfree
Created January 8, 2016 14:35
Show Gist options
  • Star 4 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save chrisfree/78996998f7a66e8c3ece to your computer and use it in GitHub Desktop.
Save chrisfree/78996998f7a66e8c3ece to your computer and use it in GitHub Desktop.
Example Drupal 8 Deployment with Drush
#!/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