2025-07-17 17:43:51 +03:00
|
|
|
const grab = process.env.SITE
|
|
|
|
|
? `npm run grab -- --site=${process.env.SITE} ${
|
|
|
|
|
process.env.CLANG ? `--lang=${process.env.CLANG}` : ''
|
|
|
|
|
} --output=public/guide.xml`
|
|
|
|
|
: 'npm run grab -- --channels=channels.xml --output=public/guide.xml'
|
|
|
|
|
|
2025-01-02 11:10:04 +03:00
|
|
|
module.exports = {
|
|
|
|
|
apps: [
|
|
|
|
|
{
|
|
|
|
|
name: 'serve',
|
2025-01-03 09:03:45 +03:00
|
|
|
script: 'npx serve -- public',
|
2025-01-02 11:10:04 +03:00
|
|
|
instances: 1,
|
|
|
|
|
watch: false,
|
|
|
|
|
autorestart: true
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
name: 'grab',
|
2025-07-17 17:43:51 +03:00
|
|
|
script: `npx chronos -e "${grab}" -p "${process.env.CRON_SCHEDULE}" -l`,
|
2025-01-02 11:10:04 +03:00
|
|
|
instances: 1,
|
|
|
|
|
watch: false,
|
2025-07-17 17:43:51 +03:00
|
|
|
autorestart: true
|
2025-01-02 11:10:04 +03:00
|
|
|
}
|
|
|
|
|
]
|
|
|
|
|
}
|