Skip to content

Commit ec71151

Browse files
committed
Try reverting change to wp_cli()
1 parent 1ce3750 commit ec71151

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

tools/local-env/scripts/install.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,5 +61,7 @@ wait_on( {
6161
* @param {string} cmd The WP-CLI command to run.
6262
*/
6363
function wp_cli( cmd ) {
64-
execSync( `npm --silent run env:cli -- ${cmd} --path=/var/www/${process.env.LOCAL_DIR}`, { stdio: 'inherit' } );
64+
const composeFiles = local_env_utils.get_compose_files();
65+
66+
execSync( `docker compose ${composeFiles} run --quiet-pull --rm cli ${cmd} --path=/var/www/${process.env.LOCAL_DIR}`, { stdio: 'inherit' } );
6567
}

0 commit comments

Comments
 (0)