From 03ee512427842084403c974611e38a46314c1d41 Mon Sep 17 00:00:00 2001 From: freearhey <7253922+freearhey@users.noreply.github.com> Date: Sun, 19 Jan 2025 00:43:50 +0300 Subject: [PATCH] Update pm2.config.js --- pm2.config.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/pm2.config.js b/pm2.config.js index 6175593a..5515583d 100644 --- a/pm2.config.js +++ b/pm2.config.js @@ -9,7 +9,11 @@ module.exports = { }, { name: 'grab', - script: `npm run grab -- --channels=channels.xml --output=public/guide.xml`, + script: process.env.SITE + ? `npm run grab -- --site=${process.env.SITE} ${ + process.env.CLANG ? `--lang=${process.env.CLANG}` : '' + }` + : 'npm run grab -- --channels=channels.xml --output=public/guide.xml', cron_restart: process.env.CRON || null, instances: 1, watch: false,