Skip to content

Instantly share code, notes, and snippets.

@mpdonadio
Created January 17, 2015 18:44
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 mpdonadio/5e51607922f6066691d9 to your computer and use it in GitHub Desktop.
Save mpdonadio/5e51607922f6066691d9 to your computer and use it in GitHub Desktop.
drupal-install
function drupal-install() {
# If you run this command with an argument, it will be the name of the DB
if [ $1 ] ; then
drush si --notify --account-pass=admin --db-url=mysql://root:root@localhost/$1 -y
else
drush si --notify --account-pass=admin --db-url=mysql://root:root@localhost/d8 -y
fi
# Install and uninstall common modules
#drush en devel simpletest -y
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment