test Drupal site working on Koality Theme Builder
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

61 lines
1.8 KiB

  1. <?php
  2. $settings['update_free_access'] = FALSE;
  3. $settings['file_private_path'] = '../private';
  4. $settings['container_yamls'][] = $app_root . '/' . $site_path . '/services.yml';
  5. $settings['file_scan_ignore_directories'] = [
  6. 'node_modules',
  7. 'bower_components',
  8. ];
  9. $settings['entity_update_batch_size'] = 50;
  10. $settings['hash_salt'] = 'asotenuarchqewsmaoeuSNTH56654+';
  11. $settings['trusted_host_patterns'] = [
  12. getenv('DRUPAL_TRUSTED_HOSTS'),
  13. 'nazarene-org\.docksal$',
  14. ];
  15. $databases = [];
  16. $databases['default']['default'] = [
  17. 'database' => getenv('DATABASE_NAME'),
  18. 'username' => getenv('DATABASE_USERNAME'),
  19. 'password' => getenv('DATABASE_PASSWORD'),
  20. 'prefix' => '',
  21. 'host' => getenv('DATABASE_HOST'),
  22. 'port' => '3306',
  23. 'namespace' => 'Drupal\\Core\\Database\\Driver\\mysql',
  24. 'driver' => 'mysql',
  25. ];
  26. $config_directories = [];
  27. $config_directories[CONFIG_SYNC_DIRECTORY] = '../config/default/default';
  28. $site_environment = getenv('SITE_ENV');
  29. $config['config_split.config_split.local']['status'] = FALSE;
  30. $config['config_split.config_split.dev']['status'] = FALSE;
  31. $config['config_split.config_split.stage']['status'] = FALSE;
  32. $config['config_split.config_split.prod']['status'] = FALSE;
  33. switch ($site_environment) {
  34. case 'local':
  35. $config['config_split.config_split.local']['status'] = TRUE;
  36. break;
  37. case 'dev':
  38. $config['config_split.config_split.dev']['status'] = TRUE;
  39. break;
  40. case 'stage':
  41. $config['config_split.config_split.stage']['status'] = TRUE;
  42. break;
  43. case 'prod':
  44. $config['config_split.config_split.prod']['status'] = TRUE;
  45. break;
  46. }
  47. /**
  48. * Include a custom settings file if it exists.
  49. */
  50. $custom_settings = DRUPAL_ROOT . '/sites/default/custom.settings.php';
  51. if (file_exists($custom_settings)) {
  52. include $custom_settings;
  53. }