Skip to content

Instantly share code, notes, and snippets.

@kporras07
Last active November 27, 2015 16:24
Show Gist options
  • Save kporras07/d034770d848bc808db9e to your computer and use it in GitHub Desktop.
Save kporras07/d034770d848bc808db9e to your computer and use it in GitHub Desktop.
// En Settings.php
$local_settings = __DIR__ . "/settings.local.php";
if (file_exists($local_settings)) {
include $local_settings;
}
if (empty($settings['hash_salt'])) {
$settings['hash_salt'] = hash('sha256', serialize($databases));
}
// En settings.local.php
<?php
$databases['default']['default'] = array(
'driver' => 'mysql',
'database' => 'database',
'username' => 'username',
'password' => 'password',
'host' => 'localhost',
'prefix' => '',
);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment