@greenpress/cli
Version:
CLI to install greenpress
11 lines (10 loc) • 450 B
JavaScript
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'});
}