From e472e1cee49b55dc1203fefe207773020d53d30c Mon Sep 17 00:00:00 2001 From: freearhey <7253922+freearhey@users.noreply.github.com> Date: Fri, 20 Feb 2026 15:31:09 +0300 Subject: [PATCH] Changed LF to CRLF --- pm2.config.js | 70 +++++++++++++++++++++++++-------------------------- 1 file changed, 35 insertions(+), 35 deletions(-) diff --git a/pm2.config.js b/pm2.config.js index 273068e4..ab96c8b4 100644 --- a/pm2.config.js +++ b/pm2.config.js @@ -1,35 +1,35 @@ -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' - - -const apps = [ - { - name: 'serve', - script: 'npx serve -- public', - instances: 1, - watch: false, - autorestart: true - }, - { - name: 'grab', - script: `npx chronos -e "${grab}" -p "${process.env.CRON_SCHEDULE}" -l`, - instances: 1, - watch: false, - autorestart: true - } -] - -if (process.env.RUN_AT_STARTUP === 'true') { - apps.push({ - name: 'grab-at-startup', - script: grab, - instances: 1, - autorestart: false, - watch: false, - max_restarts: 1 - }) -} - -module.exports = { apps } +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' + +const apps = [ + { + name: 'serve', + script: 'npx serve -- public', + instances: 1, + watch: false, + autorestart: true + }, + { + name: 'grab', + script: `npx chronos -e "${grab}" -p "${process.env.CRON_SCHEDULE}" -l`, + instances: 1, + watch: false, + autorestart: true + } +] + +if (process.env.RUN_AT_STARTUP === 'true') { + apps.push({ + name: 'grab-at-startup', + script: grab, + instances: 1, + autorestart: false, + watch: false, + max_restarts: 1 + }) +} + +module.exports = { apps }