From cd9485f5525b2fe0c57a4148106ea5da546f6a5c Mon Sep 17 00:00:00 2001 From: Avi Schwab Date: Tue, 19 Mar 2019 11:24:55 -0500 Subject: [PATCH] Copy settings.php if we're local --- .docksal/commands/init-site | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/.docksal/commands/init-site b/.docksal/commands/init-site index efacf49..b6efff6 100755 --- a/.docksal/commands/init-site +++ b/.docksal/commands/init-site @@ -52,6 +52,11 @@ site_install () { cd $DOCROOT_PATH + if [[ $HOSTNAME == "cli" ]]; then + # Add settings.local.php if it doesn't already exist and we're in docksal. This will get ignored by git. + copy_settings_file $DOCROOT_PATH/sites/example.settings.local.php $SITEDIR_PATH/settings.local.php + fi + # We disable email sending here so site-install does not return an error PHP_OPTIONS="-d sendmail_path=`which true`" drush site-install -y --site-name='My Drupal 8 Site' --sites-subdir="default" }