Make WordPress Core

Ticket #51898: 51898.2.diff

File 51898.2.diff, 798 bytes (added by mkox, 3 years ago)

Removed tmp var

  • tools/local-env/scripts/start.js

    diff --git a/tools/local-env/scripts/start.js b/tools/local-env/scripts/start.js
    index cf18435450..f3e066126b 100644
    a b const { execSync } = require( 'child_process' ); 
    44
    55dotenvExpand( dotenv.config() );
    66
     7// Check if docker server is available
     8// @ticket 51898
     9//
     10// The docker info command will throw an error if server is not available.
     11try {
     12        execSync( 'docker info' );
     13}
     14catch ( err ) {
     15        if( err.message.startsWith( "Command failed: docker info" ) ) {
     16                throw new Error( `Running docker info returned an error. Is docker service and server running?` );
     17        }
     18        throw err;
     19}
     20
    721// Start the local-env containers.
    822execSync( 'docker-compose up -d wordpress-develop', { stdio: 'inherit' } );
    923