|
| 1 | +<?php |
| 2 | + |
| 3 | +/** |
| 4 | + * @file |
| 5 | + * CI development override configuration feature. |
| 6 | + */ |
| 7 | + |
| 8 | +$loc_db_name = "drupal"; |
| 9 | +$loc_db_user = 'drupal'; |
| 10 | +$loc_db_pass = 'drupal'; |
| 11 | +$loc_db_host = "127.0.0.1"; |
| 12 | +$loc_db_port = '3306'; |
| 13 | + |
| 14 | +$databases = [ |
| 15 | + 'default' => |
| 16 | + [ |
| 17 | + 'default' => |
| 18 | + [ |
| 19 | + 'database' => $loc_db_name, |
| 20 | + 'username' => $loc_db_user, |
| 21 | + 'password' => $loc_db_pass, |
| 22 | + 'host' => $loc_db_host, |
| 23 | + 'port' => $loc_db_port, |
| 24 | + 'driver' => 'mysql', |
| 25 | + 'prefix' => '', |
| 26 | + ], |
| 27 | + ], |
| 28 | +]; |
| 29 | + |
| 30 | +/** |
| 31 | + * Setup files on local. |
| 32 | + */ |
| 33 | +$settings['file_public_path'] = "sites/default/files"; |
| 34 | +$settings['file_private_path'] = "sites/default/files/private"; |
| 35 | +$settings["file_temp_path"] = 'sites/default/files/tmp'; |
| 36 | + |
| 37 | +/** |
| 38 | + * Skip file system permissions hardening on local. |
| 39 | + */ |
| 40 | +$settings['skip_permissions_hardening'] = TRUE; |
| 41 | + |
| 42 | +/** |
| 43 | + * Access control for update.php script. |
| 44 | + */ |
| 45 | +$settings['update_free_access'] = TRUE; |
| 46 | + |
| 47 | +/** |
| 48 | + * Enable local development services. |
| 49 | + */ |
| 50 | +$settings['container_yamls'][] = DRUPAL_ROOT . '/sites/development.services.yml'; |
| 51 | + |
| 52 | +/** |
| 53 | + * Disable Drupal caching. |
| 54 | + */ |
| 55 | +$settings['cache']['bins']['render'] = 'cache.backend.null'; |
| 56 | +$settings['cache']['bins']['dynamic_page_cache'] = 'cache.backend.null'; |
| 57 | + |
| 58 | +/** |
| 59 | + * Enable access to rebuild.php. |
| 60 | + * |
| 61 | + * This setting can be enabled to allow Drupal's php and database cached |
| 62 | + * storage to be cleared via the rebuild.php page. Access to this page can also |
| 63 | + * be gained by generating a query string from rebuild_token_calculator.sh and |
| 64 | + * using these parameters in a request to rebuild.php. |
| 65 | + */ |
| 66 | +$settings['rebuild_access'] = TRUE; |
| 67 | + |
| 68 | +/** |
| 69 | + * Salt for one-time login links, cancel links, form tokens, etc. |
| 70 | + */ |
| 71 | +$settings['hash_salt'] = 'LOCAL_ONLY'; |
0 commit comments