Last active
August 29, 2015 14:04
-
-
Save mkorostoff/3fcd74715b9f2017cf86 to your computer and use it in GitHub Desktop.
This file contains hidden or 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/sh | |
# | |
# @author Matt Korostoff <[email protected]> | |
# | |
# @internal | |
# | |
# @category | |
# | |
# @copyright Licensed under the GNU General Public License as published by the Free | |
# Software Foundation, either version 3 of the License, or (at your option) | |
# any later version. http://www.gnu.org/licenses/ | |
#!/bin/sh | |
# | |
# @author Matt Korostoff <[email protected]> | |
# | |
# @internal sync dev to local | |
# | |
# @category mysite | |
# | |
# @copyright Licensed under the GNU General Public License as published by the Free | |
# Software Foundation, either version 3 of the License, or (at your option) | |
# any later version. http://www.gnu.org/licenses/ | |
start_of_line="\n+--------------------------------------------------\n| " | |
end_of_line=" \n+--------------------------------------------------" | |
#Drop the local DB | |
echo "${start_of_line}Dropping entire local database in order to make a clean copy from prod${end_of_line}" | |
drush @mysite.local sql-drop -y | |
#Copy the database from dev | |
echo "${start_of_line}copying database from prod -> local, this may take a while${end_of_line}" | |
drush sql-sync -y @mysite.dev @mysite.local | |
#Disable update module for performance reasons | |
echo "${start_of_line}Disabling update module${end_of_line}" | |
drush @mysite.local dis -y update | |
echo "${start_of_line}Disable CSS aggregation${end_of_line}" | |
drush @mysite.local vset preprocess_css 0 | |
echo "${start_of_line}Disable JS aggregation${end_of_line}" | |
drush @mysite.local vset preprocess_js 0 | |
echo "${start_of_line}Disable caching${end_of_line}" | |
drush @mysite.local vset cache 0 | |
#Enable devel | |
echo "${start_of_line}Enabling devel${end_of_line}" | |
drush @mysite.local en -y devel | |
#Set admin password to 123 | |
echo "${start_of_line}Setting admin password to 123${end_of_line}" | |
drush @mysite.local upwd admin --password=123 | |
#Clear the cache | |
echo "${start_of_line}Clearing cache${end_of_line}" | |
drush @mysite.local updb -y |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment