]> gitweb.fluxo.info Git - templater.git/commitdiff
Updates drupal 8 setup
authorSilvio Rhatto <rhatto@riseup.net>
Thu, 9 Nov 2017 16:27:50 +0000 (14:27 -0200)
committerSilvio Rhatto <rhatto@riseup.net>
Thu, 9 Nov 2017 16:27:50 +0000 (14:27 -0200)
share/templater/drupal8/files/default.settings.php
share/templater/drupal8/setup

index c7dd194350e9f53b9849631b1b5e8042d1619665..923b07979cdc5a087b07f0bddffdb9f97d5944b8 100644 (file)
@@ -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$',
+);
index 79687b58e68ee42a06d2122d25c76cc767c5d956..b66d6bf0ce6be0d59efabe1e12732fd24f9923aa 100755 (executable)
@@ -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