Browse files

Use "tokens" for production database defaults. You can leave them the…

… same in your repo and just have your deploy script populate them. This way you can share the repo with consultants without giving them access to your DB credentials.
  • Loading branch information...
1 parent d30e7a5 commit 5e74120942396b6eca324301a331a62e288e5edc @markjaquith committed May 26, 2012
Showing with 4 additions and 4 deletions.
  1. +4 −4 wp-config.php
View
8 wp-config.php
@@ -7,10 +7,10 @@
include( dirname( __FILE__ ) . '/local-config.php' );
} else {
define( 'WP_LOCAL_DEV', false );
- define( 'DB_NAME', 'database_name_here' );
- define( 'DB_USER', 'username_here' );
- define( 'DB_PASSWORD', 'password_here' );
- define( 'DB_HOST', 'localhost' );
+ define( 'DB_NAME', '%%DB_NAME%%' );
+ define( 'DB_USER', '%%DB_USER%%' );
+ define( 'DB_PASSWORD', '%%DB_PASSWORD%%' );
+ define( 'DB_HOST', '%%DB_HOST%%' ); // Probably 'localhost'
}
// ========================

0 comments on commit 5e74120

Please sign in to comment.