Skip to content

Commit

Permalink
updated the template to dynamically fill in the username and password…
Browse files Browse the repository at this point in the history
… for the db as well as use the external ip for connection
  • Loading branch information
Kevin Gray committed Oct 29, 2010
1 parent 472d6df commit d85e4b4
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions cookbooks/wordpress/templates/default/db-config.php.erb
Expand Up @@ -183,9 +183,9 @@ $wpdb->tcp_responsiveness_check = true;
* the 'global' dataset. (Every table is in 'global' by default.)
*/
$wpdb->add_database(array(
'host' => 'db-master-<%= @region %>.internal', // If port is other than 3306, use host:port.
'user' => 'USE_NODE_ATTRIBUTE',
'password' => 'USE_NODE_ATTRIBUTE',
'host' => 'db-master-<%= @region %>.reserve.dyntini.com', // If port is other than 3306, use host:port.
'user' => '<%= @user %>',
'password' => '<%= @password %>',
'name' => 'wordpress',
'write' => <%= @dbmw %>,
'read' => <%= @dbmr %>,
Expand Down

0 comments on commit d85e4b4

Please sign in to comment.