Created
June 8, 2018 20:57
-
-
Save arkadiusjonczek/e9fca574ba94182a5293a15c93f0d3d2 to your computer and use it in GitHub Desktop.
WordPress: Use wp-cli & laradock/docker together #tags: WordPress
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
/** MySQL hostname */ | |
if (php_sapi_name() == 'cli') { | |
define( 'DB_HOST', '127.0.0.1' ); | |
} | |
else { | |
define( 'DB_HOST', 'mysql' ); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment