Last active
August 29, 2015 14:17
-
-
Save crazyrohila/de5cd9a63989c98c5672 to your computer and use it in GitHub Desktop.
D8_rebuild.sh to rebuild installation
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/bash | |
# Few command to re-install fresh D8 after new changes pulled. | |
# Replace <sql_user> & <password>. | |
# @params $1 DB Name. | |
# Run this script within D8 root folder and with sudo permission | |
rm sites/default/settings.php; | |
cp sites/default/default.settings.php sites/default/settings.php; | |
chmod 777 sites/default/settings.php; | |
mysqladmin -u<sql_user> -p<password> drop -f $1; | |
mysqladmin -u<sql_user> -p<password> create $1; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment