Created
August 14, 2014 17:42
-
-
Save heyMP/35c22245b12e16a6c7b9 to your computer and use it in GitHub Desktop.
Pull Production to Local Dev
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 | |
read -p "Pulling Current Prod down to IT News Local. Are you sure? " -n 1 -r | |
if [[ $REPLY =~ ^[Yy]$ ]] | |
then | |
echo "Current Prod down to IT News Local" | |
drush @itnews.local sql-drop -y | |
drush sql-sync @current.prod @itnews.local -y | |
drush @itnews.local vset --yes file_temporary_path "sites/default/files/tmp" | |
drush @itnews.local dis securepages -y | |
drush @itnews.local dis toolbar -y | |
drush @itnews.local dis admin_menu -y | |
drush @itnews.local dis webaccess -y | |
drush @itnews.local en stage_file_proxy -y | |
drush @itnews.local en coffee -y | |
drush @itnews.local en devel -y | |
drush @itnews.local en admin_menu_toolbar -y | |
drush @itnews.local en admin_menu_devel -y | |
drush @itnews.local vset --yes preprocess_css 0 | |
drush @itnews.local vset --yes preprocess_js 0 | |
drush @itnews.local vset --yes stage_file_proxy_origin http://news.it.psu.edu | |
drush @itnews.local vset --yes environment_indicator_text LOCAL | |
drush @itnews.local vset --yes environment_indicator_color '#12c00d' | |
fi | |
read -p "Do you want to run a features revert? This will undo any configuration changes that have | |
been made on the live website. " -n 1 -r | |
if [[ $REPLY =~ ^[Yy]$ ]] | |
then | |
echo "Reverting features..." | |
drush @itnews.local fr-all -y | |
drush @itnews.local updatedb -y | |
fi | |
drush @itnews.local cc all | |
drush @itnews.local uli |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment