Skip to content

Instantly share code, notes, and snippets.

@crazyrohila
Last active August 29, 2015 14:17
Show Gist options
  • Save crazyrohila/de5cd9a63989c98c5672 to your computer and use it in GitHub Desktop.
Save crazyrohila/de5cd9a63989c98c5672 to your computer and use it in GitHub Desktop.
D8_rebuild.sh to rebuild installation
#! /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