Update maintenance.js

This commit is contained in:
2023-06-29 02:19:17 +02:00
committed by GitHub
parent b9524915e4
commit c8240b5a0d

View File

@@ -13,7 +13,7 @@ schedule.scheduleJob('0 1 * * *', () => {
return; return;
} }
if (stdout.includes('[new branch]')) { if (stdout.includes('[new branch]')) {
exec('pm2 stop Lunaris', (error, stdout, stderr) => { exec('pm2 stop index.js', (error, stdout, stderr) => {
if (error) { if (error) {
console.error(`exec error: ${error}`); console.error(`exec error: ${error}`);
return; return;
@@ -25,7 +25,7 @@ schedule.scheduleJob('0 1 * * *', () => {
} }
const now = new Date(); const now = new Date();
console.log(`Repository updated at ${now.toLocaleString()}`); console.log(`Repository updated at ${now.toLocaleString()}`);
exec('pm2 start Lunaris', (error, stdout, stderr) => { exec('pm2 start index.js', (error, stdout, stderr) => {
if (error) { if (error) {
console.error(`exec error: ${error}`); console.error(`exec error: ${error}`);
return; return;