Created
December 11, 2014 10:14
-
-
Save quimic-gist/e22cbd387c106c09b074 to your computer and use it in GitHub Desktop.
Drupal: Deploy update
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
#Put site in maintenance mode | |
drush vset maintenance_mode 1 | |
#Clear cache | |
drush cron | |
drush cc all | |
#Backup db | |
drush sql-dump --result-file=../before-update-xx.sql --gzip | |
#Pull updates | |
git pull | |
#Run db updates | |
drush updatedb | |
#Clear cache | |
drush cron | |
drush cc all | |
#Put site out of maintenance mode | |
drush vset maintenance_mode 0 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment