Unitech / Unitech/pm2

Can't start app when using autostart = false

Open
#5,831 6 comments 1 reaction 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

What's going wrong?

I can't start any apps when using the 'autostart' parameter

How could we reproduce this issue?

ecosystem.config.js

module.exports = [{
  name: 'testapp',
  script: `test.js`,
  autostart: false
}];

test.js

console.log('Hello World!');

Supporting information

# Run the following commands
$ pm2 start ecosystem.config.js
$ pm2 start testapp
$ pm2 logs testapp
# Logs are empty

I made a PR to fix this in the forked repo but it didn't get merged: https://github.com/ultimate-tester/pm2/pull/1

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 the issue with ecosystem.config.js and test.js by running pm2 start ecosystem.config.js, pm2 start testapp, and pm2 logs testapp. Done means an app configured with autostart: false can be started explicitly and its Hello World! output appears in the logs.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript, nodejs
Domain
cli
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Clearly specified
Newbie friendliness
38/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.