diff options
author | Silvio Rhatto <rhatto@riseup.net> | 2017-11-09 14:27:50 -0200 |
---|---|---|
committer | Silvio Rhatto <rhatto@riseup.net> | 2017-11-09 14:27:50 -0200 |
commit | 865fea9a4f812031f258a3689b3442cb0078a659 (patch) | |
tree | b7dcefac7a08ff485072b3c127e360aa353d6db1 | |
parent | 3ef280d1de0580d154336249fbc745bf4dfc4bce (diff) | |
download | templater-865fea9a4f812031f258a3689b3442cb0078a659.tar.gz templater-865fea9a4f812031f258a3689b3442cb0078a659.tar.bz2 |
Updates drupal 8 setup
-rw-r--r-- | share/templater/drupal8/files/default.settings.php | 19 | ||||
-rwxr-xr-x | share/templater/drupal8/setup | 5 |
2 files changed, 22 insertions, 2 deletions
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 |