Showing
1 changed file
with
2 additions
and
1 deletions
@@ -89,6 +89,7 @@ router.post('/exec', async(ctx) => { | @@ -89,6 +89,7 @@ router.post('/exec', async(ctx) => { | ||
89 | module.exports = { | 89 | module.exports = { |
90 | router, | 90 | router, |
91 | async check() { | 91 | async check() { |
92 | + let names = ['yohobuywap-node', 'yohobuy-node']; // 只检查pc 和wap站 | ||
92 | let rule = new schedule.RecurrenceRule(); | 93 | let rule = new schedule.RecurrenceRule(); |
93 | 94 | ||
94 | rule.dayOfWeek = [0, new schedule.Range(1, 6)]; | 95 | rule.dayOfWeek = [0, new schedule.Range(1, 6)]; |
@@ -102,7 +103,7 @@ module.exports = { | @@ -102,7 +103,7 @@ module.exports = { | ||
102 | } | 103 | } |
103 | 104 | ||
104 | projects.forEach(async(p) => { | 105 | projects.forEach(async(p) => { |
105 | - if (p.name !== 'yohobuywap-node') { // todo 暂时只检查wap站 | 106 | + if (names.indexOf(p.name) === -1) { |
106 | return; | 107 | return; |
107 | } | 108 | } |
108 | if (!running[p.name]) { | 109 | if (!running[p.name]) { |
-
Please register or login to post a comment