diff --git a/pm2.config.js b/pm2.config.js index f1f90116..67329f2c 100644 --- a/pm2.config.js +++ b/pm2.config.js @@ -19,7 +19,7 @@ const apps = [ watch: false, autorestart: true } -]; +] if (process.env.RUN_AT_STARTUP === 'true') { apps.push({ @@ -29,7 +29,7 @@ if (process.env.RUN_AT_STARTUP === 'true') { autorestart: false, watch: false, max_restarts: 1 - }); + }) } -module.exports = { apps }; \ No newline at end of file +module.exports = { apps } \ No newline at end of file