Forked from delphian/drupal-7-example-local-settings.php
Created
August 5, 2017 03:59
-
-
Save tona/a7b624002b17ea8521bdba3692cdc8ea to your computer and use it in GitHub Desktop.
Example of drupal 7 local settings.php file.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| // To set up a local environment, make a duplicate of this file and name it | |
| // local-settings.inc in the site directory that contains the settings.php file. | |
| // Ignore sites/*/local-settings.php in the .gitignore file. Change the settings.php | |
| // file to include local-settings.php if the file exists. | |
| // Point database to local service. | |
| $databases['default']['default'] = array( | |
| 'database' => 'local_db_name', | |
| 'username' => 'root', | |
| 'password' => 'root', | |
| 'host' => 'localhost', | |
| 'port' => '', | |
| 'driver' => 'mysql', | |
| 'prefix' => '', | |
| ); | |
| // Turn off css and js consolidation for local development. | |
| $conf['preprocess_css'] = 0; | |
| $conf['preprocess_js'] = 0; | |
| // Turn on all error reporting for local development. | |
| error_reporting(-1); | |
| $conf['error_level'] = 2; | |
| ini_set('display_errors', TRUE); | |
| ini_set('display_startup_errors', TRUE); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment