Skip to content

Instantly share code, notes, and snippets.

@arkadiusjonczek
Created June 8, 2018 20:57
Show Gist options
  • Save arkadiusjonczek/e9fca574ba94182a5293a15c93f0d3d2 to your computer and use it in GitHub Desktop.
Save arkadiusjonczek/e9fca574ba94182a5293a15c93f0d3d2 to your computer and use it in GitHub Desktop.
WordPress: Use wp-cli & laradock/docker together #tags: WordPress
/** 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