Created
December 17, 2014 12:35
-
-
Save outrunthewolf/3658cef85b8c8d7cca89 to your computer and use it in GitHub Desktop.
Laravel DB Read/Write config
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 | |
return array( | |
'connections' => array( | |
// Postgres | |
'pgsql' => array( | |
'driver' => 'pgsql', | |
'read' => array( | |
'host' => 'xxxxx-replica.amazonaws.com' | |
), | |
'write' => array( | |
'host' => 'xxxxx-master.amazonaws.com' | |
), | |
'database' => 'xxxxxxx', | |
'username' => 'xxxxxxx', | |
'password' => 'xxxxxxx', | |
'charset' => 'utf8', | |
'prefix' => '', | |
'schema' => 'public', | |
) | |
), | |
// Redis | |
'redis' => array( | |
'cluster' => false, | |
'default' => array( | |
'host' => 'xxxxxx-redis.amazonaws.com', | |
'port' => 6379, | |
'database' => 0, | |
) | |
) | |
); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment