Created
July 17, 2019 20:28
-
-
Save lilumi/a75ccdffa592de11a6daece38154c643 to your computer and use it in GitHub Desktop.
Local dev config
This file contains hidden or 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 | |
| if ( file_exists( dirname( __FILE__ ) . '/local-config.php' ) ) { | |
| include( dirname( __FILE__ ) . '/local-config.php' ); | |
| define( 'WP_LOCAL_DEV', true ); // We'll talk about this later | |
| } else { | |
| define( 'DB_NAME', 'production_db' ); | |
| define( 'DB_USER', 'production_user' ); | |
| define( 'DB_PASSWORD', 'production_password' ); | |
| define( 'DB_HOST', 'production_db_host' ); | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment