23 lines
636 B
JavaScript
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
|
|
}
|
|
]
|
|
} |