Skip to content

Commit

Permalink
Merge pull request #108 from shellshocked59/settings_local
Browse files Browse the repository at this point in the history
settings.local.php configuration override
  • Loading branch information
reynoldsalec committed Apr 20, 2015
2 parents e8a0f22 + 2e22580 commit a55517b
Show file tree
Hide file tree
Showing 3 changed files with 41 additions and 0 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
# Ignore paths that contain user-generated content.
/sites/*/files
/sites/*/private
/sites/default/local.settings.php
/files/*
/cache

Expand Down
32 changes: 32 additions & 0 deletions sites/default/default.local.settings.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
<?php
/*
* Copy this file to local.settings.php in order to override configuration within settings.php
* local.settings.php is ignored by git and not deployed to Pantheon
*/
$databases['default']['default'] = array(
'driver' => 'mysql',
'database' => 'kalamuna_playbox',
'username' => 'root',
'password' => 'root',
'host' => 'localhost',
'port' => '8889',
'prefix' => '',
);

$update_free_access = TRUE;


$base_url = 'http://'.$_SERVER['HTTP_HOST'].'/kalamuna/playbox'; // NO trailing slash!
$cookie_domain = $_SERVER['HTTP_HOST'];

#disables Drupal Caching if desired
/*$conf = array(
'cache' => '0',
'preprocess_css' => '0',
'preprocess_js' => '0',
'block_cache' => '0',
'page_compression' => '0',
);*/

ini_set('memory_limit', '500M');
ini_set('max_execution_time', 300);
8 changes: 8 additions & 0 deletions sites/default/settings.php
Original file line number Diff line number Diff line change
Expand Up @@ -591,3 +591,11 @@
$conf['css_gzip_compression'] = FALSE;
$conf['js_gzip_compression'] = FALSE;
}

/**
* Include a local settings file if it exists.
*/
$local_settings = dirname(__FILE__) . '/local.settings.php';
if (file_exists($local_settings)) {
include $local_settings;
}

0 comments on commit a55517b

Please sign in to comment.