Update pm2.config.js

This commit is contained in:
freearhey 2025-01-19 00:43:50 +03:00
parent 45a06e961c
commit 03ee512427

View file

@ -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,