Replace init command with drupal-install

This commit is contained in:
Oliver Davies 2019-07-16 01:41:43 +01:00
parent 3124769b97
commit 698ff45595
2 changed files with 24 additions and 13 deletions

View file

@ -0,0 +1,24 @@
#!/usr/bin/env bash
#: exec_target = cli
set -e
function install_site() {
drush site-install -y \
--account-pass=admin123 \
--site-name='Drupal Tailwind CSS'
}
function change_theme() {
drush theme:enable tailwindcss -y
drush config-set system.theme default tailwindcss -y
}
function login_link() {
drush uli -l http://drupal-tailwind.docksal
}
install_site
change_theme
login_link

View file

@ -1,13 +0,0 @@
#!/usr/bin/env bash
fin start
fin drush site-install -y \
--account-pass=admin \
--site-name='Drupal Tailwind CSS'
# Change the default theme
fin drush theme:enable tailwindcss -y
fin drush config-set system.theme default tailwindcss -y
fin drush uli -l http://drupal-tailwind.docksal