Forked from delphian/drupal-7-example-local-settings.php
Last active
May 4, 2016 19:15
-
-
Save isramv/fea282f482ad75d52b2f1576441d37e1 to your computer and use it in GitHub Desktop.
Example of drupal 7 local settings.php file.
This file contains 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; | |
// stage_image_proxy settings. | |
$conf['stage_file_proxy_origin'] = 'http://example.org/'; | |
// 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