Skip to content

Instantly share code, notes, and snippets.

@afeijo
Created September 20, 2017 01:07
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save afeijo/03225df80f2aa95b499633ad6feafeca to your computer and use it in GitHub Desktop.
Save afeijo/03225df80f2aa95b499633ad6feafeca to your computer and use it in GitHub Desktop.
Create a new Drupal project
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 --account-mail=feijo@mindcore.org --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