UNPKG

@aivec/wp-docker-dev-factory

Version:

Spin up local WordPress environments with Docker.

13 lines (10 loc) 319 B
import { FinalInstanceConfig } from '../types'; import { execSync } from 'child_process'; const logContainer = (config: FinalInstanceConfig): void => { try { execSync(`docker logs -f ${config.containerName}`, { stdio: 'inherit' }); } catch (e) { console.log('\nBye.'); } }; export default logContainer;