diff --git a/packages/env/lib/commands/start.js b/packages/env/lib/commands/start.js index ae084d296b5ba1..529d5d4e3e0da4 100644 --- a/packages/env/lib/commands/start.js +++ b/packages/env/lib/commands/start.js @@ -250,6 +250,16 @@ module.exports = async function start( { ); const testsMySQLPort = testsMySQLAddress.split( ':' ).pop(); + let phpmyadminPort; + if ( phpmyadmin ) { + const { out: phpmyadminAddress } = await dockerCompose.port( + 'phpmyadmin', + 80, + dockerComposeConfig + ); + phpmyadminPort = phpmyadminAddress.split( ':' ).pop(); + } + spinner.prefixText = 'WordPress development site started' .concat( siteUrl ? ` at ${ siteUrl }` : '.' ) .concat( '\n' ) @@ -260,6 +270,11 @@ module.exports = async function start( { .concat( `MySQL for automated testing is listening on port ${ testsMySQLPort }` ) + .concat( + phpmyadminPort + ? `phpMyAdmin is listening on port ${ phpmyadminPort }` + : '' + ) .concat( '\n' ); spinner.text = 'Done!';