Skip to content

Commit

Permalink
Added default.settings.local.php support
Browse files Browse the repository at this point in the history
  • Loading branch information
ashabed committed Jun 11, 2016
1 parent f13a27f commit 8e7832c
Show file tree
Hide file tree
Showing 2 changed files with 37 additions and 0 deletions.
33 changes: 33 additions & 0 deletions sites/default/default.settings.local.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
<?php

/**
* For local or shared development, copy this file to settings.local.php,
* then populate the copied file with your website's database information and base_url.
*
* This file will not be committed to the repository, which allows multiple
* instances of the website to share the same codebase.
*/

$databases['default']['default'] = array(
'driver' => 'mysql',
'database' => '', // Choose & write a name for this site's db in-between
// the single quotation marks. DB name must contain only
// lowercase letters, numbers, and underscores.

'username' => 'root', // root is the academyvm mysql username
'password' => 'root', // root is the academyvm mysql password
'host' => 'localhost',
'collation' => 'utf8_general_ci',
);


/**
* Base URL
*
* Examples:
* $base_url = 'http://dev-1.academyvm.dev/proj-arcs';
* $base_url = 'http://dev-2.academyvm.dev/proj-debugacademy';
* $base_url = 'http://stage-1.academyvm.dev/proj-arcs';
*/
$base_url = ''; // Write the site's URL in-between the single quotations

4 changes: 4 additions & 0 deletions sites/default/default.settings.php
Original file line number Diff line number Diff line change
Expand Up @@ -584,3 +584,7 @@
* Remove the leading hash sign to enable.
*/
# $conf['theme_debug'] = TRUE;
$local_settings = dirname(__FILE__) . '/settings.local.php';
if (file_exists($local_settings)) {
include $local_settings;
}

0 comments on commit 8e7832c

Please sign in to comment.