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