# 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$',
+);
echo settings.prod.php >> .gitignore
echo services.yml >> .gitignore
echo files >> .gitignore
+ echo sql >> .gitignore
fi
if [ ! -e "settings.dev.php" ]; then
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