Skip to content

Commit

Permalink
Revert pm2 back to using forked mode because there currently is a bug…
Browse files Browse the repository at this point in the history
… with pm2 cluster mode
  • Loading branch information
Brayden Pellegrini committed Aug 30, 2021
1 parent ae487a6 commit 198f80c
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions pm2.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,22 @@ module.exports = {
/**
* Application configuration section
* http://pm2.keymetrics.io/docs/usage/application-declaration/
*
* *NOTE* There is currently a bug with PM2 when in cluster mode. The
* issue is that PM2 is receiving the config/env variables
* (i.e out/error log location, add date to logs, etc.), but it is
* not using them. The logs are going to pm2.log and there is no
* date added to the start of each log line.
* Once this bug is fixed the exec_mode can be switched back to
* cluster and this change can be reverted.
* The version of PM2 that this issue is happening on is 4.5.6**
*/
apps: [

// Application Server
{
name: 'IPR-API',
script: 'npm',
instances: 'max',
exec_mode: 'cluster',
args: 'start',
watch: false,
log_date_format: 'YYYY-MM-DD HH:mm Z',
Expand Down

0 comments on commit 198f80c

Please sign in to comment.