UNPKG

@greenpress/cli

Version:
11 lines (10 loc) 450 B
const execute = require('../../utils/execute'); const {getCommand} = require('../../services/populate'); module.exports = function ({tenant, host}) { if (!host) { console.log('Host domain is missing, could not populate.'); return; } execute(`docker exec greenpress_auth_1 sh -c '${getCommand(tenant, host)}'`, {stdio: 'inherit'}); execute(`docker exec greenpress_content_1 sh -c '${getCommand(tenant, host)}'`, {stdio: 'inherit'}); }