Skip to content

Commit

Permalink
Use "tokens" for production database defaults. You can leave them the…
Browse files Browse the repository at this point in the history
… 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
markjaquith committed May 26, 2012
1 parent d30e7a5 commit 5e74120
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions wp-config.php
Expand Up @@ -7,10 +7,10 @@
include( dirname( __FILE__ ) . '/local-config.php' ); include( dirname( __FILE__ ) . '/local-config.php' );
} else { } else {
define( 'WP_LOCAL_DEV', false ); define( 'WP_LOCAL_DEV', false );
define( 'DB_NAME', 'database_name_here' ); define( 'DB_NAME', '%%DB_NAME%%' );
define( 'DB_USER', 'username_here' ); define( 'DB_USER', '%%DB_USER%%' );
define( 'DB_PASSWORD', 'password_here' ); define( 'DB_PASSWORD', '%%DB_PASSWORD%%' );
define( 'DB_HOST', 'localhost' ); define( 'DB_HOST', '%%DB_HOST%%' ); // Probably 'localhost'
} }


// ======================== // ========================
Expand Down

0 comments on commit 5e74120

Please sign in to comment.