From: Silvio Rhatto Date: Thu, 9 Nov 2017 16:27:50 +0000 (-0200) Subject: Updates drupal 8 setup X-Git-Url: https://gitweb.fluxo.info/?a=commitdiff_plain;h=865fea9a4f812031f258a3689b3442cb0078a659;p=templater.git Updates drupal 8 setup --- diff --git a/share/templater/drupal8/files/default.settings.php b/share/templater/drupal8/files/default.settings.php index c7dd194..923b079 100644 --- a/share/templater/drupal8/files/default.settings.php +++ b/share/templater/drupal8/files/default.settings.php @@ -783,3 +783,22 @@ $settings['entity_update_batch_size'] = 50; # if (file_exists($app_root . '/' . $site_path . '/settings.local.php')) { # include $app_root . '/' . $site_path . '/settings.local.php'; # } + +/** + * Basic config set by templater - https://templater.fluxo.info + */ +$databases['default']['default'] = array ( + 'database' => 'drupal', + 'username' => 'drupal', + 'password' => 'hackme', + 'host' => 'localhost', + 'port' => '3306', + 'driver' => 'mysql', + 'prefix' => '', + 'collation' => 'utf8mb4_general_ci', +); +$settings['install_profile'] = 'standard'; +$config_directories['sync'] = 'sites/default/config/sync'; +$settings['trusted_host_patterns'] = array( + '^localhost$', +); diff --git a/share/templater/drupal8/setup b/share/templater/drupal8/setup index 79687b5..b66d6bf 100755 --- a/share/templater/drupal8/setup +++ b/share/templater/drupal8/setup @@ -19,6 +19,7 @@ function templater_drupal8 { echo settings.prod.php >> .gitignore echo services.yml >> .gitignore echo files >> .gitignore + echo sql >> .gitignore fi if [ ! -e "settings.dev.php" ]; then @@ -53,9 +54,9 @@ function templater_drupal8 { cp $SHARE/drupal8/files/Puppetfile puppet/Puppetfile.drupal8 fi - mkdir -p files config themes modules libraries vendor + mkdir -p files config/sync themes modules libraries vendor touch {files,config,themes,modules,libraries,vendor}/.empty - git add -f {files,config,themes,modules,libraries}/.empty + git add -f {files,config/sync,themes,modules,libraries}/.empty else __templater_echo "Drupal already set" fi