Unitech / Unitech/pm2

PM2 custom file not working in cluster mode always starts with fork mode

Open
#5,630 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
JavaScript
Stars
43.3k
Forks
2.7k
PR merge metrics
No merged PRs in 30d

Description

Question is very simple, i have pm2.conf.js file which has all pm2 related configurations. When run

pm2 start pm2.config.js

it runs on cluster mode as expected. (exec_mode=cluuster)

The same file, i renamed as pm2.dev.js and now when i run pm2 start pm2.dev.js, it runs in fork mode. Why?

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Reproduce both commands with the referenced pm2.config.js and pm2.dev.js files, then trace how the PM2 CLI identifies and loads configuration files. Confirm whether the filename changes execution mode and document or correct the behavior so both commands consistently honor exec_mode=cluster.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript, node.js
Domain
cli
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.