Authored by xuqi

Merge branch 'feature/page-cache' of http://git.yoho.cn/OPENTECH/yoho-node-ci in…

…to feature/page-cache
... ... @@ -61,6 +61,9 @@ const p = {
deploy.env = env;
deploy.name = envs[env];
if (typeof deploy.target === 'string') {
deploy.target = [deploy.target];
}
let promises = deploy.target.map((host) => {
console.log('read host :' + host);
... ... @@ -220,6 +223,10 @@ const p = {
let project = await Project.findById(building.projectId);
let targets = project.deploy[building.env].target;
if (typeof targets === 'string') {
targets = [targets];
}
targets.forEach(async(host) => {
let doc = await DeployInfo.findOne({
... ... @@ -394,7 +401,11 @@ const p = {
return;
}
const hosts = project.deploy[env].target;
let hosts = project.deploy[env].target;
if (typeof hosts === 'string') {
hosts = [hosts];
}
hosts.forEach((host) => {
var obj = {
'total': 0,
... ...