Wordpress/tools/local-env/scripts/docker.js

7 lines
255 B
JavaScript

const dotenv = require( 'dotenv' );
const { execSync } = require( 'child_process' );
dotenv.config();
// Execute any docker-compose command passed to this script.
execSync( 'docker-compose ' + process.argv.slice( 2 ).join( ' ' ), { stdio: 'inherit' } );