epg-info-docker/pm2.config.js
David Claeys 252a7b23aa
All checks were successful
Build docker container / build (push) Successful in 10m26s
bugfixes
2025-04-07 09:02:22 +02:00

23 lines
636 B
JavaScript

module.exports = {
apps: [
{
name: 'serve',
script: 'npx serve -- public',
instances: 1,
watch: false,
autorestart: true
},
{
name: 'grab',
script: process.env.SITE
? `npm run grab -- --site=${process.env.SITE} ${
process.env.CLANG ? `--lang=${process.env.CLANG}` : ''
} --output=public/guide.xml`
: `npm run grab -- --gzip --channels=channels.xml --output=public/guide.xml`,
cron_restart: process.env.CRON || null,
instances: 1,
watch: false,
autorestart: false
}
]
}