Created
September 20, 2017 01:07
-
-
Save afeijo/03225df80f2aa95b499633ad6feafeca to your computer and use it in GitHub Desktop.
Create a new Drupal project
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
if [[ $# -eq 0 ]] ; then | |
echo 'you forgot the new site name' | |
exit 0 | |
fi | |
echo 'Creating site $1' | |
time drush dl --destination=/www --drupal-project-rename=$1 | |
cd $1 | |
mysql -e 'create database $1' | |
time drush si --account-name=admin --account-pass=102030 [email protected] --site-name="$1" --db-url=mysqli://root:1234@localhost/$1 -y | |
drush en admin_toolbar pathauto -y |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment