Updates
This commit is contained in:
parent
be78ce3bc3
commit
f0cfd197a2
@ -44,7 +44,7 @@ export default async function cronCheckServicesGit(
|
|||||||
|
|
||||||
if (!repo_name) continue;
|
if (!repo_name) continue;
|
||||||
|
|
||||||
console.log(`Checking Service ${service.service_name} git ...`);
|
console.log(`Checking Service \`${service.service_name}\` git ...`);
|
||||||
|
|
||||||
const relay_dst = path.join(
|
const relay_dst = path.join(
|
||||||
relayServerRsyncDir,
|
relayServerRsyncDir,
|
||||||
@ -67,7 +67,7 @@ export default async function cronCheckServicesGit(
|
|||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
console.log(`Updating ${service.service_name} git ...`);
|
console.log(`Updating \`${service.service_name}\` git ...`);
|
||||||
|
|
||||||
let cmd = ``;
|
let cmd = ``;
|
||||||
|
|
||||||
@ -93,7 +93,6 @@ export default async function cronCheckServicesGit(
|
|||||||
const res = await relayExecSSH({
|
const res = await relayExecSSH({
|
||||||
cmd,
|
cmd,
|
||||||
log_error: true,
|
log_error: true,
|
||||||
debug: true,
|
|
||||||
});
|
});
|
||||||
|
|
||||||
if (!res?.match(/Git Setup Success/)) {
|
if (!res?.match(/Git Setup Success/)) {
|
||||||
@ -104,11 +103,17 @@ export default async function cronCheckServicesGit(
|
|||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
await serviceFlight({
|
const restart = await serviceFlight({
|
||||||
deployment,
|
deployment,
|
||||||
servers: service.servers,
|
servers: service.servers,
|
||||||
service,
|
service,
|
||||||
});
|
});
|
||||||
|
|
||||||
|
if (restart) {
|
||||||
|
console.log(
|
||||||
|
`Service \`${service.service_name}\` new git version deployed successfully!`,
|
||||||
|
);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
return {
|
return {
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user