mirror of
https://github.com/iptv-org/epg
synced 2026-04-30 14:36:58 -04:00
Update pm2.config.js
This commit is contained in:
@@ -1,8 +1,8 @@
|
|||||||
const grab = process.env.SITE
|
const grab = process.env.SITE
|
||||||
? `npm run grab -- --site=${process.env.SITE} ${process.env.CLANG ? `--lang=${process.env.CLANG}` : ''
|
? `npm run grab -- --site=${process.env.SITE} ${
|
||||||
|
process.env.CLANG ? `--lang=${process.env.CLANG}` : ''
|
||||||
} --output=public/guide.xml`
|
} --output=public/guide.xml`
|
||||||
: 'npm run grab -- --channels=channels.xml --output=public/guide.xml'
|
: 'npm run grab -- --channels=public/channels.xml --output=public/guide.xml'
|
||||||
|
|
||||||
|
|
||||||
const apps = [
|
const apps = [
|
||||||
{
|
{
|
||||||
@@ -19,7 +19,7 @@ const apps = [
|
|||||||
watch: false,
|
watch: false,
|
||||||
autorestart: true
|
autorestart: true
|
||||||
}
|
}
|
||||||
];
|
]
|
||||||
|
|
||||||
if (process.env.RUN_AT_STARTUP === 'true') {
|
if (process.env.RUN_AT_STARTUP === 'true') {
|
||||||
apps.push({
|
apps.push({
|
||||||
@@ -29,7 +29,7 @@ if (process.env.RUN_AT_STARTUP === 'true') {
|
|||||||
autorestart: false,
|
autorestart: false,
|
||||||
watch: false,
|
watch: false,
|
||||||
max_restarts: 1
|
max_restarts: 1
|
||||||
});
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
module.exports = { apps };
|
module.exports = { apps }
|
||||||
|
|||||||
Reference in New Issue
Block a user